Skip to content

Commit

Permalink
test: fixed download doc view test
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-lymar committed Jun 22, 2024
1 parent 7ebdff0 commit 919943d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion makedoc/tests/test_views_makedoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ def test__create_docs_view__authorized_user_get_no_data(authorized_client):
@pytest.mark.django_db
def test__download_doc_view__returns_404_when_no_file_exists(authorized_client):
url = reverse("downloadfile")
response = authorized_client.get(url)
response = authorized_client.post(url, {}, format="json")
assert response.status_code == 404
assert response.json() == {"error": "No file found"}

0 comments on commit 919943d

Please sign in to comment.