mirror of
https://github.com/calibrain/shelfmark.git
synced 2026-11-27 15:03:35 +00:00
Backend test hardening + quality enforcement (#872)
- Reworked many tests - Enforcing lint + type checking for test suite - Fixed various issues surfaced by the new tests - CI tweaks
This commit is contained in:
100 files changed
+8607
-6347
No files matched your search
@@ -44,7 +44,9 @@ class TestNotificationsSettingsApi:
|
||||
with patch.object(main_module, "get_auth_mode", return_value="builtin"):
|
||||
resp = client.post(
|
||||
"/api/settings/notifications/action/test_admin_notification",
|
||||
json={"ADMIN_NOTIFICATION_ROUTES": [{"event": "all", "url": "ntfys://ntfy.sh/demo"}]},
|
||||
json={
|
||||
"ADMIN_NOTIFICATION_ROUTES": [{"event": "all", "url": "ntfys://ntfy.sh/demo"}]
|
||||
},
|
||||
)
|
||||
|
||||
assert resp.status_code == 403
|
||||
|
||||
Reference in new issue
Block a user