Rename some endpoints
This commit is contained in:
@@ -57,13 +57,13 @@ def test_calendar_routes_are_registered():
|
||||
|
||||
|
||||
def test_calendar_is_active_requires_admin(client):
|
||||
response = client.get("/api/v1/calendar/isActive")
|
||||
response = client.get("/api/v1/calendar/status")
|
||||
assert response.status_code == 401, response.text
|
||||
|
||||
|
||||
def test_calendar_is_active_reports_disabled_handler(client, auth_headers):
|
||||
"""With DISABLE_CALDAV=True the handler is None, so isActive must be false."""
|
||||
response = client.get("/api/v1/calendar/isActive", headers=auth_headers)
|
||||
response = client.get("/api/v1/calendar/status", headers=auth_headers)
|
||||
assert response.status_code == 200, response.text
|
||||
assert response.json() is False
|
||||
|
||||
@@ -71,9 +71,9 @@ def test_calendar_is_active_reports_disabled_handler(client, auth_headers):
|
||||
@pytest.mark.parametrize(
|
||||
"path",
|
||||
[
|
||||
"/api/v1/calendar/calGetActiveEvents",
|
||||
"/api/v1/calendar/calGetFutureEvents",
|
||||
"/api/v1/calendar/calGetActiveGroups",
|
||||
"/api/v1/calendar/activeEvents",
|
||||
"/api/v1/calendar/futureEvents",
|
||||
"/api/v1/calendar/activeGroups",
|
||||
],
|
||||
)
|
||||
def test_calendar_diagnostics_without_handler_are_503(client, auth_headers, path):
|
||||
|
||||
Reference in New Issue
Block a user