Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make authenticate easier to test without monkeypatching | Tomasz Kramkowski | 2023-03-28 | 1 | -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 import | Tomasz Kramkowski | 2023-03-28 | 1 | -1/+0 |
| | |||||
* | Split Store into Store and Auth | Tomasz Kramkowski | 2023-03-28 | 1 | -3/+3 |
| | | | | This separates the concerns | ||||
* | Switch back to centralised opening of the database | Tomasz Kramkowski | 2023-03-28 | 2 | -16/+27 |
| | | | | | | Create Store instances when needed This will make more sense with following commits | ||||
* | rename open_database to open_store | Tomasz Kramkowski | 2023-03-27 | 1 | -3/+3 |
| | |||||
* | tests/middleware/open_database: simplify test | Tomasz Kramkowski | 2023-03-27 | 1 | -36/+13 |
| | |||||
* | Throw all data manipulation code in one place | Tomasz Kramkowski | 2023-03-27 | 2 | -31/+29 |
| | | | | | This means that everything now goes through a Store object, which should make testing a little bit easier. | ||||
* | if_none_match: quote ETag values | Tomasz Kramkowski | 2023-03-27 | 1 | -0/+3 |
| | |||||
* | Respond to auth failures with WWW-Authenticate | Tomasz Kramkowski | 2023-03-27 | 1 | -0/+3 |
| | |||||
* | tests/middleware/if_none_match: remove duplicate test | Tomasz Kramkowski | 2023-03-27 | 1 | -7/+0 |
| | |||||
* | add middleware tests | Tomasz Kramkowski | 2023-03-24 | 7 | -0/+433 |