summary refs log tree commit diff
path: root/tests/storage/test_background_update.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add type hints to tests files. (#12256)Dirk Klimpel2022-03-211-22/+26
|
* Add config settings for background update parameters (#11980)Shay2022-03-111-16/+237
|
* Fix a bug in background updates wherein background updates are never run ↵Shay2022-03-071-2/+2
| | | | using the default batch size (#12157)
* Remove `HomeServer.get_datastore()` (#12031)Richard van der Hoff2022-02-231-4/+4
| | | | | | | The presence of this method was confusing, and mostly present for backwards compatibility. Let's get rid of it. Part of #11733
* Use mock from standard library (#11588)V024602021-12-201-9/+8
| | | Instead of the backported version.
* Add a license header and comment. (#11479)Patrick Cloke2021-12-011-0/+15
|
* Make background updates controllable via a plugin (#11306)Erik Johnston2021-11-291-13/+91
| | | Co-authored-by: Brendan Abolivier <babolivier@matrix.org>
* Lower minumum batch size to 1 for background updates (#11422)Brendan Abolivier2021-11-241-4/+4
| | | Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
* Use inline type hints in `tests/` (#10350)Jonathan de Jong2021-07-131-3/+1
| | | | | | | | This PR is tantamount to running: python3.8 -m com2ann -v 6 tests/ (com2ann requires python 3.8 to run)
* Use mock from the stdlib. (#9772)Patrick Cloke2021-04-091-1/+1
|
* Update black, and run auto formatting over the codebase (#9381)Eric Eastwood2021-02-161-1/+3
| | | | | | | - Update black version to the latest - Run black auto formatting over the codebase - Run autoformatting according to [`docs/code_style.md `](https://github.com/matrix-org/synapse/blob/80d6dc9783aa80886a133756028984dbf8920168/docs/code_style.md) - Update `code_style.md` docs around installing black to use the correct version
* Do not yield on awaitables in tests. (#8193)Patrick Cloke2020-08-271-6/+3
|
* Convert additional database methods to async (select list, search, ↵Patrick Cloke2020-08-271-3/+2
| | | | insert_many, delete_*) (#8168)
* Rename database classes to make some sense (#8033)Erik Johnston2020-08-051-3/+5
|
* Make do_next_background_update return a boolRichard van der Hoff2020-03-311-3/+3
| | | | returning a None or an int that we don't use is confusing.
* Make `has_completed_background_updates` asyncRichard van der Hoff2020-03-311-1/+3
| | | | (Almost) everywhere that uses it is happy with an awaitable.
* Remove unused `start_background_update`Richard van der Hoff2020-03-311-5/+9
| | | | This was only used in a unit test, so let's just inline it in the test.
* port BackgroundUpdateTestCase to HomeserverTestCase (#6653)Richard van der Hoff2020-01-071-35/+37
|
* Move background update handling out of storeErik Johnston2019-12-051-9/+17
|
* Move DB pool and helper functions into dedicated Database classErik Johnston2019-12-051-1/+1
|
* Replace returnValue with return (#5736)Amber Brown2019-07-231-2/+2
|
* Run Black on the tests again (#5170)Amber Brown2019-05-101-3/+1
|
* Fix flake8 (#4519)Amber Brown2019-01-301-1/+1
|
* Run tests under PostgreSQL (#3423)Amber Brown2018-08-131-1/+3
|
* Run black.black2018-08-101-13/+4
|
* run isortAmber Brown2018-07-091-3/+3
|
* PEP8Richard van der Hoff2016-07-251-1/+1
|
* Fix background_update testsRichard van der Hoff2016-07-251-6/+16
| | | | | | A bit of a cleanup for background_updates, and make sure that the real background updates have run before we start the unit tests, so that they don't interfere with the tests.
* Fix flake8 warnings for testsMark Haines2016-02-191-5/+3
|
* Test for background updatesMark Haines2015-11-101-0/+76