Commit Graph

6 Commits

Author SHA1 Message Date
David Robertson
c99b511db9
Fix destination_is errors seen in sentry. ()
* Rename test_fedclient to match its source file
* Require at least one destination to be truthy
* Explicitly validate user ID in profile endpoint GETs
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
2022-06-14 18:28:26 +01:00
Dirk Klimpel
1901cb1d4a
Add type hints to tests/rest/client () 2022-02-28 17:47:37 +00:00
Patrick Cloke
02d708568b
Replace assertEquals and friends with non-deprecated versions. () 2022-02-28 07:12:29 -05:00
Richard van der Hoff
e24ff8ebe3
Remove HomeServer.get_datastore() ()
The presence of this method was confusing, and mostly present for backwards
compatibility. Let's get rid of it.

Part of 
2022-02-23 11:04:02 +00:00
Brendan Abolivier
bf60da1a60
Configurable limits on avatars ()
Only allow files which file size and content types match configured
limits to be set as avatar.

Most of the inspiration from the non-test code comes from 
2022-01-28 15:41:33 +01:00
David Robertson
ecd823d766
Flatten tests/rest/client/{v1,v2_alpha} too () 2021-08-20 17:50:44 +01:00