Remove redundant `get_success` calls in test code (#12346)
There are a bunch of places we call get_success on an immediate value, which is unnecessary. Let's rip them out, and remove the redundant functionality in get_success and friends.
Showing
- changelog.d/12346.misc 1 addition, 0 deletionschangelog.d/12346.misc
- tests/handlers/test_deactivate_account.py 12 additions, 13 deletionstests/handlers/test_deactivate_account.py
- tests/handlers/test_profile.py 1 addition, 1 deletiontests/handlers/test_profile.py
- tests/handlers/test_sync.py 1 addition, 3 deletionstests/handlers/test_sync.py
- tests/module_api/test_api.py 9 additions, 11 deletionstests/module_api/test_api.py
- tests/replication/slave/storage/test_events.py 2 additions, 2 deletionstests/replication/slave/storage/test_events.py
- tests/rest/admin/test_server_notice.py 3 additions, 9 deletionstests/rest/admin/test_server_notice.py
- tests/rest/client/test_rooms.py 1 addition, 1 deletiontests/rest/client/test_rooms.py
- tests/storage/test_id_generators.py 6 additions, 6 deletionstests/storage/test_id_generators.py
- tests/storage/test_redaction.py 20 additions, 42 deletionstests/storage/test_redaction.py
- tests/storage/test_stream.py 1 addition, 3 deletionstests/storage/test_stream.py
- tests/test_visibility.py 12 additions, 14 deletionstests/test_visibility.py
- tests/unittest.py 5 additions, 16 deletionstests/unittest.py
Loading
Please register or sign in to comment