-
- Downloads
Refactor user directory tests (#10935)
* Pull out GetUserDirectoryTables helper
* Don't rebuild the dir in tests that don't need it
In #10796 I changed registering a user to add directory entries under.
This means we don't have to force a directory regbuild in to tests of
the user directory search.
* Move test_initial to tests/storage
* Add type hints to both test_user_directory files
Co-authored-by:
Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
Showing
- changelog.d/10935.misc 1 addition, 0 deletionschangelog.d/10935.misc
- mypy.ini 6 additions, 0 deletionsmypy.ini
- synapse/storage/databases/main/user_directory.py 1 addition, 1 deletionsynapse/storage/databases/main/user_directory.py
- tests/handlers/test_user_directory.py 89 additions, 194 deletionstests/handlers/test_user_directory.py
- tests/storage/test_user_directory.py 188 additions, 4 deletionstests/storage/test_user_directory.py
- tests/unittest.py 3 additions, 1 deletiontests/unittest.py
Loading
Please register or sign in to comment