summary refs log tree commit diff
path: root/tests/app (follow)
Commit message (Collapse)AuthorAgeFilesLines
* use global make_request() directly where we have a custom ResourceRichard van der Hoff2020-11-152-14/+16
| | | | | | Where we want to render a request against a specific Resource, call the global make_request() function rather than the one in HomeserverTestCase, allowing us to pass in an appropriate `Site`.
* Solidify the HomeServer constructor. (#8515)Jonathan de Jong2020-10-152-3/+3
| | | | | | This implements a more standard API for instantiating a homeserver and moves some of the dependency injection into the test suite. More concretely this stops using `setattr` on all `kwargs` passed to `HomeServer`.
* Create a ListenerConfig object (#7681)Richard van der Hoff2020-06-162-16/+18
| | | | | | | | | | This ended up being a bit more invasive than I'd hoped for (not helped by generic_worker duplicating some of the code from homeserver), but hopefully it's an improvement. The idea is that, rather than storing unstructured `dict`s in the config for the listener configurations, we instead parse it into a structured `ListenerConfig` object.
* Remove spurious "name" parameter to `default_config`Richard van der Hoff2020-03-242-4/+4
| | | | | this is never set to anything other than "test", and is a source of unnecessary boilerplate.
* set worker_app for frontend proxy test (#7003)Richard van der Hoff2020-02-271-0/+5
| | | to stop the federationhandler trying to do master stuff
* Store room version on invite (#6983)Richard van der Hoff2020-02-261-0/+8
| | | | | When we get an invite over federation, store the room version in the rooms table. The general idea here is that, when we pull the invite out again, we'll want to know what room_version it belongs to (so that we can later redact it if need be). So we need to store it somewhere...
* Merge worker apps into one. (#6964)Erik Johnston2020-02-252-10/+6
|
* Run Black on the tests again (#5170)Amber Brown2019-05-101-24/+22
|
* Fix flake8 issuesJason Robinson2019-01-231-2/+8
| | | | Signed-off-by: Jason Robinson <jasonr@matrix.org>
* Fix openid tests after rebaseJason Robinson2019-01-231-2/+2
| | | | Signed-off-by: Jason Robinson <jasonr@matrix.org>
* Fix sorting of imports in tests. Remove an unnecessary mockJason Robinson2019-01-231-2/+2
| | | | Signed-off-by: Jason Robinson <jasonr@matrix.org>
* Add tests for the openid lister for SynapseHomeServerJason Robinson2019-01-231-1/+48
| | | | | | | Check all possible variants of openid and federation listener on/off possibilities. Signed-off-by: Jason Robinson <jasonr@matrix.org>
* Add tests for the openid lister for FederationReaderServerJason Robinson2019-01-231-0/+66
| | | | | | | Check all possible variants of openid and federation listener on/off possibilities. Signed-off-by: Jason Robinson <jasonr@matrix.org>
* Fix a test docstring in frontend proxy testsJason Robinson2019-01-231-1/+1
| | | | Signed-off-by: Jason Robinson <jasonr@matrix.org>
* Port tests/ to Python 3 (#3808)Amber Brown2018-09-071-2/+2
|
* Integrate presence from hotfixes (#3694)Amber Brown2018-08-182-0/+88