MatrixSynapse/tests
David Robertson d3cf0730f8
Optionally use an on-disk sqlite db in tests (#11702)
* Optionally use an on-disk sqlite db in tests

When debugging a test it is sometimes useful to inspect the state of the
DB. This is not easy when the db is in-memory: one cannot attach the
sqlite CLI to another process's DB.

With this change, if SYNAPSE_TEST_PERSIST_SQLITE_DB is set, we use
 `_trial_temp/test.db` as our sqlite database. One can then use 
`sqlite3 _trial_temp/test.db` and query to your heart's content.

The DB is destroyed and recreated between different test cases.

Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
2022-01-07 19:13:41 +00:00
..
api Add experimental support for MSC3202: allowing application services to masquerade as specific devices. (#11538) 2021-12-15 10:40:52 +00:00
app Don't start Synapse master process if `worker_app` is set (#11416) 2021-11-30 10:12:18 -08:00
appservice Add missing type hints to `synapse.appservice` (#11360) 2021-12-14 17:02:46 +00:00
config Support configuring the lifetime of non-refreshable access tokens separately to refreshable access tokens. (#11445) 2021-12-03 16:42:44 +00:00
crypto Fix perspectives requests for multiple keys for the same server (#11440) 2021-11-29 13:15:36 +00:00
events
federation Include the topic event in the prejoin state, per MSC3173. (#11666) 2022-01-04 11:08:08 -05:00
handlers Test that bans win a join against a race when computing `/sync` response (#11701) 2022-01-07 16:43:21 +00:00
http Prevent the media store from writing outside of the configured directory 2021-11-19 13:39:15 +00:00
logging
module_api Remove a debug statement from tests. (#11239) 2021-11-03 13:11:16 +00:00
push Make background updates controllable via a plugin (#11306) 2021-11-29 17:57:06 +01:00
replication Convert all namedtuples to attrs. (#11665) 2021-12-30 18:47:12 +00:00
rest Test that bans win a join against a race when computing `/sync` response (#11701) 2022-01-07 16:43:21 +00:00
scripts
server_notices
state
storage Fix a type annotation in `test_account_data.py` and remove it from the Mypy exclusion list. (#11657) 2021-12-29 15:12:30 +00:00
test_utils Cache empty responses from `/user/devices` (#11587) 2022-01-05 13:33:28 +00:00
util Re-apply: Move glob_to_regex and re_word_boundary to matrix-python-common #11505 (#11687) 2022-01-05 11:41:49 +00:00
__init__.py
server.py Optionally use an on-disk sqlite db in tests (#11702) 2022-01-07 19:13:41 +00:00
test_distributor.py
test_event_auth.py
test_federation.py Strip unauthorized fields from `unsigned` object in events received over federation (#11530) 2022-01-06 09:09:30 -08:00
test_mau.py Revert change to counting of deactivated users towards the monthly active users limit (#11127) 2021-10-20 11:05:29 +01:00
test_metrics.py
test_phone_home.py
test_preview.py Move HTML parsing to a separate file for URL previews. (#11566) 2021-12-13 17:55:07 +00:00
test_server.py
test_state.py
test_terms_auth.py
test_test_utils.py
test_types.py
test_visibility.py Clean up `tests.test_visibility` to remove legacy code. (#11495) 2021-12-02 18:13:30 +00:00
unittest.py Fix case in `wait_for_background_updates` where `self.store` does not exist (#11331) 2021-12-07 11:51:53 -05:00
utils.py Optionally use an on-disk sqlite db in tests (#11702) 2022-01-07 19:13:41 +00:00