MCPcopy Index your code
hub / github.com/wechaty/python-wechaty / test_user_classes_should_share

Function test_user_classes_should_share

tests/accessory_test.py:59–73  ·  view source on GitHub ↗

doc

()

Source from the content-addressed store, hash-verified

57
58
59def test_user_classes_should_share() -> None:
60 """doc"""
61
62 user_class = get_user_class()
63
64 user_class.set_wechaty(EXPECTED_WECHATY1)
65 user_class.set_puppet(EXPECTED_PUPPET1)
66
67 child1 = user_class()
68 child2 = user_class()
69
70 assert child1.wechaty == EXPECTED_WECHATY1, \
71 'child1 should get the wechaty from static value'
72 assert child2.wechaty == EXPECTED_WECHATY1, \
73 'child1 should get the wechaty from static value'
74
75
76def test_indenpendent_user_classes_instances() -> None:

Callers

nothing calls this directly

Calls 3

get_user_classFunction · 0.85
set_wechatyMethod · 0.80
set_puppetMethod · 0.80

Tested by

no test coverage detected