See #890: disable report deletion

This commit is contained in:
Eliot Berriot 2019-09-02 11:06:25 +02:00
parent 94b9db062d
commit 5e39a85ebe
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
2 changed files with 0 additions and 11 deletions

View File

@ -462,7 +462,6 @@ class ManageInstancePolicyViewSet(
class ManageReportViewSet(
mixins.ListModelMixin,
mixins.RetrieveModelMixin,
mixins.DestroyModelMixin,
mixins.UpdateModelMixin,
viewsets.GenericViewSet,
):

View File

@ -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