summary refs log tree commit diff
path: root/tests/storage/test_base.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Require types in tests.storage. (#14646)Patrick Cloke2022-12-091-13/+17
| | | | Adds missing type hints to `tests.storage` package and does not allow untyped definitions.
* Require SQLite >= 3.27.0 (#13760)David Robertson2022-09-091-1/+0
|
* Add some type hints to tests files (#12833)Dirk Klimpel2022-05-231-1/+1
| | | Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
* Replace assertEquals and friends with non-deprecated versions. (#12092)Patrick Cloke2022-02-281-3/+3
|
* Refactor `tests.util.setup_test_homeserver` and ↵reivilibre2021-12-211-1/+2
| | | | `tests.server.setup_test_homeserver`. (#11503)
* Revert accidental commits to develop.Olivier Wilkinson (reivilibre)2021-12-031-2/+1
|
* Move `tests.utils.setup_test_homeserver` to `tests.server`Olivier Wilkinson (reivilibre)2021-12-031-1/+2
| | | | | | | It had no users. We have just taken the identity of a previous function but don't provide the same behaviour, so we need to fix this in the next commit...
* update black to 21.6b0 (#10197)Marcus2021-06-171-1/+1
| | | | | Reformat all files with the new version. Signed-off-by: Marcus Hoffmann <bubu@bubu1.eu>
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
| | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Use mock from the stdlib. (#9772)Patrick Cloke2021-04-091-2/+1
|
* Reduce serialization errors in MultiWriterIdGen (#8456)Erik Johnston2020-10-071-0/+1
| | | | | | We call `_update_stream_positions_table_txn` a lot, which is an UPSERT that can conflict in `REPEATABLE READ` isolation level. Instead of doing a transaction consisting of a single query we may as well run it outside of a transaction.
* Convert additional database methods to async (select list, search, ↵Patrick Cloke2020-08-271-2/+4
| | | | insert_many, delete_*) (#8168)
* Convert simple_update* and simple_select* to async (#8173)Patrick Cloke2020-08-271-10/+16
|
* Convert simple_select_one and simple_select_one_onecol to async (#8162)Patrick Cloke2020-08-261-11/+17
|
* Convert some of the general database methods to async (#8100)Patrick Cloke2020-08-171-6/+10
|
* Rename database classes to make some sense (#8033)Erik Johnston2020-08-051-11/+11
|
* Add `HomeServer.signing_key` property (#7805)Richard van der Hoff2020-07-081-5/+2
| | | ... instead of duplicating `config.signing_key[0]` everywhere
* Allow configuration of Synapse's cache without using synctl or environment ↵Amber Brown2020-05-111-1/+2
| | | | variables (#6391)
* Add database config class (#6513)Erik Johnston2019-12-181-6/+8
| | | | | This encapsulates config for a given database and is the way to get new connections.
* Fixup testsErik Johnston2019-12-061-1/+2
|
* Move DB pool and helper functions into dedicated Database classErik Johnston2019-12-051-9/+9
|
* Remove underscore from SQLBaseStore functionsErik Johnston2019-12-041-9/+9
|
* Run Black on the tests again (#5170)Amber Brown2019-05-101-4/+1
|
* Fix UPSERTs on SQLite 3.24+ (#4477)Amber Brown2019-01-281-2/+5
|
* Use native UPSERTs where possible (#4306)Amber Brown2019-01-241-0/+1
|
* Fix up testsRichard van der Hoff2018-08-281-2/+2
|
* Run black.black2018-08-101-28/+18
|
* run isortAmber Brown2018-07-091-4/+4
|
* Fix tests for Store.__init__ updateRichard van der Hoff2017-11-131-1/+1
| | | | Fix the test to pass the right number of args to the Store constructors
* User Cursor.__iter__ instead of fetchallErik Johnston2017-03-231-2/+2
| | | | This prevents unnecessary construction of lists
* Don't require config to create databaseErik Johnston2016-04-061-1/+1
|
* Merge pull request #571 from matrix-org/daniel/asidsDaniel Wagner-Hall2016-03-031-1/+2
|\ | | | | Mark AS users with their AS's ID
| * Mark AS users with their AS's IDDaniel Wagner-Hall2016-02-111-1/+2
| |
* | Fix flake8 warnings for testsMark Haines2016-02-191-46/+43
|/
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* synapse/storage/_base.py:_simple_selectupdate_one was unusedMark Haines2015-09-231-20/+0
|
* Fix daedlockErik Johnston2015-05-151-1/+2
|
* Add support for using executemanyErik Johnston2015-05-051-2/+2
|
* Fix tests after commit 9a0579Erik Johnston2015-04-081-0/+6
|
* Make work in both Maria and SQLite. Fix testsErik Johnston2015-04-011-9/+11
|
* Tidy up _simple_... methodsErik Johnston2015-03-201-1/+1
|
* Add a cache for get_eventMark Haines2015-02-111-2/+3
|
* Factor out some of the common homeserver setup code into aMark Haines2015-02-111-0/+1
| | | | setup_test_homeserver function in utils.
* SYN-163: Add an order by rowid to selects.Erik Johnston2014-11-241-4/+8
| | | | | | | This should fix the bug where the edges of the graph get returned in a different order than they were inserted in, and so no get_event no longer returned the exact same JSON as was inserted. This meant that signature checks failed.
* Fix SQLBaseStoreTestCaseErik Johnston2014-11-101-1/+1
|
* Have all unit tests import from our own subclass of trial's unittest ↵Paul "LeoNerd" Evans2014-09-121-1/+1
| | | | TestCase; set up logging in ONE PLACE ONLY
* fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org ↵Matthew Hodgson2014-09-031-1/+1
| | | | hasn't been incorporated in time for launch.
* add in copyrights to everything, not just the synapse subdir, and add a ↵Matthew Hodgson2014-08-131-0/+14
| | | | copyrighter.pl whilst we're at it
* Reference Matrix Home Servermatrix.org2014-08-121-0/+191