should get expected value by reading instance wechaty & puppet after init
(
user_class: Type[Accessory],
)
| 139 | |
| 140 | |
| 141 | def test_accessory_read_initialized_instance( |
| 142 | user_class: Type[Accessory], |
| 143 | ) -> None: |
| 144 | """ |
| 145 | should get expected value by reading instance wechaty & puppet after init |
| 146 | """ |
| 147 | |
| 148 | user_class.set_puppet(EXPECTED_PUPPET1) |
| 149 | user_class.set_wechaty(EXPECTED_WECHATY1) |
| 150 | |
| 151 | # reveal_type(accessory_class) |
| 152 | accessory_instance = user_class() |
| 153 | |
| 154 | assert \ |
| 155 | accessory_instance.puppet == EXPECTED_PUPPET1, \ |
| 156 | 'should get puppet back' |
| 157 | assert \ |
| 158 | accessory_instance.wechaty == EXPECTED_WECHATY1, \ |
| 159 | 'should get wechaty back' |
| 160 | |
| 161 | |
| 162 | def test_accessory_set_twice( |
nothing calls this directly
no test coverage detected