Skip to content

Commit

Permalink
Fixed unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
WardPearce committed Sep 10, 2023
1 parent 61eb64a commit 9c88c65
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion backend/paaster/tests/test_paste.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,14 @@ def test_access_code_protect_paste(
) -> None:
response = client.post(
f"/controller/paste/{create_paste.id}/{create_paste.owner_secret}",
json={"access_code": "some_epic_password"},
json={
"access_code": {
"salt": "123",
"code": "some_epic_password",
"ops_limit": 0,
"mem_limit": 0,
}
},
)
assert response.status_code == 201

Expand Down

0 comments on commit 9c88c65

Please sign in to comment.