Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove more usages of cursor_to_dict. (#16551) | Patrick Cloke | 2023-10-26 | 1 | -1/+1 |
| | | | Mostly to improve type safety. | ||||
* | Update ruff config (#16283) | Patrick Cloke | 2023-09-08 | 1 | -2/+2 |
| | | | Enable additional checks & clean-up unneeded configuration. | ||||
* | Revert "Stop writing to column `user_id` of tables `profiles` and ↵ | Shay | 2023-07-18 | 1 | -0/+63 |
| | | | | | | | | | `user_filters`. (#15953) * Revert "Stop writing to column `user_id` of tables `profiles` and `user_filters` (#15787)" This reverts commit f25b0f88081bb436bef914983cff7087b54eba5f. * newsfragement | ||||
* | Stop writing to column `user_id` of tables `profiles` and `user_filters` ↵ | Shay | 2023-07-07 | 1 | -63/+0 |
| | | | | (#15787) | ||||
* | `N + 3`: Read from column `full_user_id` rather than `user_id` of tables ↵ | Shay | 2023-06-02 | 1 | -12/+5 |
| | | | | `profiles` and `user_filters` (#15649) | ||||
* | Add not null constraint to column `full_user_id` of tables `profiles` and ↵ | Shay | 2023-05-16 | 1 | -0/+63 |
| | | | | `user_filters` (#15537) | ||||
* | Add column `full_user_id` to tables `profiles` and `user_filters`. (#15458) | Shay | 2023-04-26 | 1 | -14/+6 |
| | |||||
* | Replace assertEquals and friends with non-deprecated versions. (#12092) | Patrick Cloke | 2022-02-28 | 1 | -2/+2 |
| | |||||
* | Remove `HomeServer.get_datastore()` (#12031) | Richard van der Hoff | 2022-02-23 | 1 | -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 Robertson | 2021-11-15 | 1 | -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 Jong | 2021-07-13 | 1 | -10/+2 |
| | |||||
* | Remove redundant "coding: utf-8" lines (#9786) | Jonathan de Jong | 2021-04-14 | 1 | -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 Cloke | 2021-04-06 | 1 | -22/+13 |
| | |||||
* | Remove user's avatar URL and displayname when deactivated. (#8932) | Dirk Klimpel | 2021-01-12 | 1 | -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 Cloke | 2020-08-26 | 1 | -5/+18 |
| | |||||
* | Convert some of the general database methods to async (#8100) | Patrick Cloke | 2020-08-17 | 1 | -2/+2 |
| | |||||
* | Fixup tests | Erik Johnston | 2019-12-06 | 1 | -2/+1 |
| | |||||
* | Move storage classes into a main "data store". | Erik Johnston | 2019-10-21 | 1 | -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 Brown | 2018-09-04 | 1 | -1/+1 |
| | |||||
* | Run tests under PostgreSQL (#3423) | Amber Brown | 2018-08-13 | 1 | -1/+1 |
| | |||||
* | Run black. | black | 2018-08-10 | 1 | -13/+5 |
| | |||||
* | run isort | Amber Brown | 2018-07-09 | 1 | -1/+1 |
| | |||||
* | Fix tests for Store.__init__ update | Richard van der Hoff | 2017-11-13 | 1 | -1/+1 |
| | | | | Fix the test to pass the right number of args to the Store constructors | ||||
* | Fix flake8 warnings for tests | Mark Haines | 2016-02-19 | 1 | -1/+1 |
| | |||||
* | copyrights | Matthew Hodgson | 2016-01-07 | 1 | -1/+1 |
| | |||||
* | Factor out some of the common homeserver setup code into a | Mark Haines | 2015-02-11 | 1 | -8/+2 |
| | | | | setup_test_homeserver function in utils. | ||||
* | Replace hs.parse_userid with UserID.from_string | Mark Haines | 2015-01-23 | 1 | -1/+2 |
| | |||||
* | Neaten more of the storage layer tests with assertObjectHasAttributes; more ↵ | Paul "LeoNerd" Evans | 2014-09-17 | 1 | -6/+8 |
| | | | | standardisation on test layout | ||||
* | Use new 'tests.unittest' in new storage level tests | Paul "LeoNerd" Evans | 2014-09-15 | 1 | -1/+1 |
| | |||||
* | Need to prepare() the SQLiteMemoryDbPool before passing it to HomeServer ↵ | Paul "LeoNerd" Evans | 2014-09-11 | 1 | -3/+4 |
| | | | | constructor, as DataStore's constructor will want it ready | ||||
* | Added unit tests for PresenceDataStore too | Paul "LeoNerd" Evans | 2014-09-10 | 1 | -2/+0 |
| | |||||
* | Remember to kill now-dead import in test_profile.py | Paul "LeoNerd" Evans | 2014-09-10 | 1 | -1/+0 |
| | |||||
* | Move SQLiteMemoryDbPool implementation into tests.utils | Paul "LeoNerd" Evans | 2014-09-10 | 1 | -27/+1 |
| | |||||
* | It's considered polite to actually wait for DB prepare before running tests | Paul "LeoNerd" Evans | 2014-09-10 | 1 | -1/+4 |
| | |||||
* | Also test avatar_url profile field | Paul "LeoNerd" Evans | 2014-09-10 | 1 | -0/+14 |
| | |||||
* | Tiny trivial PoC unit-test using SQLite in :memory: mode | Paul "LeoNerd" Evans | 2014-09-10 | 1 | -0/+78 |