doc
(
user_class: Type[Accessory],
)
| 160 | |
| 161 | |
| 162 | def test_accessory_set_twice( |
| 163 | user_class: Type[Accessory], |
| 164 | ) -> None: |
| 165 | """doc""" |
| 166 | user_class.set_puppet(EXPECTED_PUPPET1) |
| 167 | |
| 168 | with pytest.raises(Exception) as exception: |
| 169 | user_class.set_puppet(EXPECTED_PUPPET1) |
| 170 | assert str(exception.value) == 'can not set _puppet twice' |
| 171 | |
| 172 | user_class.set_wechaty(EXPECTED_WECHATY1) |
| 173 | with pytest.raises(Exception) as exception: |
| 174 | user_class.set_wechaty(EXPECTED_WECHATY1) |
| 175 | assert str(exception.value) == 'can not set _wechaty twice' |
| 176 | |
| 177 | |
| 178 | def test_accessory_classmethod_access_puppet() -> None: |
nothing calls this directly
no test coverage detected