doc
()
| 57 | |
| 58 | |
| 59 | def 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 | |
| 76 | def test_indenpendent_user_classes_instances() -> None: |
nothing calls this directly
no test coverage detected