1e438244aa
tests: route_data fixture
...
Gets the actual auth level, expected status code, and expected response model from the route definitions. This can be used to make happy-path tests a standard shape, and with better coverage.
Auth tests can be directly incorporated into this test shape.
2026-06-24 09:47:26 +01:00
7dad2e920e
tests: get_testable_routes finds auth level
...
Checks all dependencies used on each endpoint and determines the highest level of auth applied to each endpoint.
API Key>SU>Root>User>None
2026-06-22 16:45:50 +01:00
4b3ab92d2a
fix: fastapi 0.137 router.route changes
2026-06-22 15:15:42 +01:00
fab228bf8f
minor: ruff format
...
Tabs -> spaces
2026-06-22 15:04:11 +01:00
b2921b73b8
fix: conftest match db changes
2026-06-22 15:02:39 +01:00
58e7ae6c5c
fix: ty compliant & issues from change to mapped columns
2026-06-22 11:23:24 +01:00
6397bd1316
feat: use Mapped syntax for columns
2026-06-20 18:42:36 +01:00
662b9c8e26
feat: permission permissions
...
Orgs can only grant permissions to groups that they themselves have been granted access to.
Super admin bypasses not added, flagged as todos.
2026-06-16 13:51:31 +01:00
43ed768f66
feat: minimum lengths for names
2026-06-12 15:58:20 +01:00
a655eaf543
tests: delete_group_perm perm not in group
...
Issue: #24
2026-06-12 13:17:07 +01:00
fc9d7f8536
tests: body param generator
...
Issue: #24
2026-06-12 12:54:48 +01:00
778f1dbece
tests: remove db modifications from individual tests
...
All db seeding now down in conftest
2026-06-12 11:29:42 +01:00
0a7f9092c7
feat: questionnaire shape update
2026-06-11 12:24:36 +01:00
c268097306
feat: helper for generating module docstrings
2026-06-11 09:57:34 +01:00
5a433dfe41
tests: dynamic test structure
...
Issue: #23
2026-06-10 12:29:15 +01:00
c689ac1e10
minor: ruff formatter
...
All changes are either:
- Correcting tabs
- Adding/removing line breaks
- Adding trailing commas
2026-06-08 15:31:37 +01:00
fff7ccde12
test: super admin dep override
...
Test user super admin account added via override rather than assumed present.
2026-06-08 11:10:39 +01:00
d3d9316741
tests: query generator
2026-06-05 12:17:32 +01:00
94cf6c5258
tests: only user auth tests
...
Resolves #18
2026-06-04 12:13:02 +01:00
2ec9cca99c
feat: super admin handling
...
The list of super admins now comes from a dependency, allowing it to easily be overrridden during testing.
2026-06-04 11:48:50 +01:00
3460cd76a5
tests: super admin auth tests
2026-06-03 14:36:15 +01:00
9d9ca0b907
minor: rename test client
...
client -> default_client
To allow for different clients. Primarily to allow different overrides for auth testing.
2026-06-03 13:54:30 +01:00
905fcf8814
feat: endpoint list producer
2026-06-03 11:57:18 +01:00
6f174deefc
tests: db seeding change
2026-06-02 16:10:16 +01:00
c0d353077b
test: db setup fix
...
Previous set up seemed to work but the db was persisting between tests, allowing for contamination.
2026-06-01 15:25:50 +01:00
7e89ab0afd
test: broader db seeding
2026-05-29 16:54:37 +01:00
19145271ae
tests: test init
2026-05-29 15:18:10 +01:00