Skip to content
Snippets Groups Projects
Verified Commit 5e39a85e authored by Eliot Berriot's avatar Eliot Berriot
Browse files

See #890: disable report deletion

parent 94b9db06
No related branches found
No related tags found
No related merge requests found
......@@ -462,7 +462,6 @@ class ManageInstancePolicyViewSet(
class ManageReportViewSet(
mixins.ListModelMixin,
mixins.RetrieveModelMixin,
mixins.DestroyModelMixin,
mixins.UpdateModelMixin,
viewsets.GenericViewSet,
):
......
......@@ -495,13 +495,3 @@ def test_report_update(factories, superuser_api_client):
assert response.status_code == 200
report.refresh_from_db()
assert report.is_handled is True
def test_report_delete(factories, superuser_api_client):
report = factories["moderation.Report"]()
url = reverse(
"api:v1:manage:moderation:reports-detail", kwargs={"uuid": report.uuid}
)
response = superuser_api_client.delete(url)
assert response.status_code == 204
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment