MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / test_activity

Function test_activity

tests/test_activity.py:8–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7
8def test_activity():
9 if not util.credentials_available():
10 warnings.warn(
11 "Skipped test_activity because there were no credentials available."
12 )
13 return
14 sess = util.session()
15
16 # we cannot do assertions, but we can probe for any errors.
17 messages = sess.messages()
18 for msg in messages:
19 print(msg, end=" ")
20
21 try:
22 target = msg.target()
23 except exceptions.CommentNotFound:
24 target = None
25 raise
26
27 print(target)
28
29
30if __name__ == "__main__":

Callers 1

test_activity.pyFile · 0.85

Calls 3

sessionMethod · 0.80
messagesMethod · 0.80
targetMethod · 0.45

Tested by

no test coverage detected