aboutsummaryrefslogtreecommitdiffstats
path: root/tests/middleware/test_authenticate.py
Commit message (Collapse)AuthorAgeFilesLines
* Make authenticate easier to test without monkeypatchingTomasz Kramkowski2023-03-281-22/+17
| | | | | | By having authenticate be a function taking a parameter to a getter which can get an Auth from an Env, it's now possible to test it without needing monkeypatching.
* remove superfluous importTomasz Kramkowski2023-03-281-1/+0
|
* Split Store into Store and AuthTomasz Kramkowski2023-03-281-3/+3
| | | | This separates the concerns
* Switch back to centralised opening of the databaseTomasz Kramkowski2023-03-281-6/+17
| | | | | | Create Store instances when needed This will make more sense with following commits
* Throw all data manipulation code in one placeTomasz Kramkowski2023-03-271-27/+26
| | | | | This means that everything now goes through a Store object, which should make testing a little bit easier.
* Respond to auth failures with WWW-AuthenticateTomasz Kramkowski2023-03-271-0/+3
|
* add middleware testsTomasz Kramkowski2023-03-241-0/+116