MCPcopy
hub / github.com/InstaPy/InstaPy / feature_in_feature

Method feature_in_feature

instapy/instapy.py:5282–5295  ·  view source on GitHub ↗

Use once a host feature calls a guest feature WHERE guest needs special behaviour(s)

(self, feature, validate_users)

Source from the content-addressed store, hash-verified

5280
5281 @contextmanager
5282 def feature_in_feature(self, feature, validate_users):
5283 """
5284 Use once a host feature calls a guest
5285 feature WHERE guest needs special behaviour(s)
5286 """
5287
5288 try:
5289 # add the guest which is gonna be used by the host :)
5290 self.internal_usage[feature] = {"validate": validate_users}
5291 yield
5292
5293 finally:
5294 # remove the guest just after using it
5295 self.internal_usage.pop(feature)
5296
5297 def live_report(self):
5298 """Report live sessional statistics"""

Callers 10

follow_commentersMethod · 0.95
follow_likersMethod · 0.95
follow_by_listMethod · 0.95
like_by_tagsMethod · 0.95
interact_user_likersMethod · 0.95
follow_user_followersMethod · 0.95
follow_user_followingMethod · 0.95
interact_by_commentsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected