summary refs log tree commit diff
path: root/tests/storage/test_profile.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Replace assertEquals and friends with non-deprecated versions. (#12092)Patrick Cloke2022-02-281-2/+2
|
* Remove `HomeServer.get_datastore()` (#12031)Richard van der Hoff2022-02-231-1/+1
| | | | | | | The presence of this method was confusing, and mostly present for backwards compatibility. Let's get rid of it. Part of #11733
* Database storage profile passes mypy (#11342)David Robertson2021-11-151-3/+6
| | | | | | It already seems to pass mypy. I wonder what changed, given that it was on the exclusion list. So this commit consists of me ensuring `--disallow-untyped-defs` passes and a minor fixup to a function that returned either `True` or `None`.
* [pyupgrade] `tests/` (#10347)Jonathan de Jong2021-07-131-10/+2
|
* 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>`
* Convert storage test cases to HomeserverTestCase. (#9736)Patrick Cloke2021-04-061-22/+13
|
* Remove user's avatar URL and displayname when deactivated. (#8932)Dirk Klimpel2021-01-121-0/+26
| | | This only applies if the user's data is to be erased.
* Convert simple_select_one and simple_select_one_onecol to async (#8162)Patrick Cloke2020-08-261-5/+18
|
* Convert some of the general database methods to async (#8100)Patrick Cloke2020-08-171-2/+2
|
* Fixup testsErik Johnston2019-12-061-2/+1
|
* Move storage classes into a main "data store".Erik Johnston2019-10-211-1/+1
| | | | | This is in preparation for having multiple data stores that offer different functionality, e.g. splitting out state or event storage.
* Fix tests on postgresql (#3740)Amber Brown2018-09-041-1/+1
|
* Run tests under PostgreSQL (#3423)Amber Brown2018-08-131-1/+1
|
* Run black.black2018-08-101-13/+5
|
* run isortAmber Brown2018-07-091-1/+1
|
* 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
* Fix flake8 warnings for testsMark Haines2016-02-191-1/+1
|
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Factor out some of the common homeserver setup code into aMark Haines2015-02-111-8/+2
| | | | setup_test_homeserver function in utils.
* Replace hs.parse_userid with UserID.from_stringMark Haines2015-01-231-1/+2
|
* Neaten more of the storage layer tests with assertObjectHasAttributes; more ↵Paul "LeoNerd" Evans2014-09-171-6/+8
| | | | standardisation on test layout
* Use new 'tests.unittest' in new storage level testsPaul "LeoNerd" Evans2014-09-151-1/+1
|
* Need to prepare() the SQLiteMemoryDbPool before passing it to HomeServer ↵Paul "LeoNerd" Evans2014-09-111-3/+4
| | | | constructor, as DataStore's constructor will want it ready
* Added unit tests for PresenceDataStore tooPaul "LeoNerd" Evans2014-09-101-2/+0
|
* Remember to kill now-dead import in test_profile.pyPaul "LeoNerd" Evans2014-09-101-1/+0
|
* Move SQLiteMemoryDbPool implementation into tests.utilsPaul "LeoNerd" Evans2014-09-101-27/+1
|
* It's considered polite to actually wait for DB prepare before running testsPaul "LeoNerd" Evans2014-09-101-1/+4
|
* Also test avatar_url profile fieldPaul "LeoNerd" Evans2014-09-101-0/+14
|
* Tiny trivial PoC unit-test using SQLite in :memory: modePaul "LeoNerd" Evans2014-09-101-0/+78