Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
hdoupe committed Oct 3, 2019
1 parent 1c56503 commit 4319e5e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions webapp/apps/comp/tests/test_asyncviews.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,3 +414,11 @@ def test_outputs_api(db, api_client, profile, password):
api_client.put("/outputs/api/", data={"bad": "data"}, format="json").status_code
== 400
)


def test_anon_get_create_api(db, api_client):
anon_user = auth.get_user(api_client)
assert not anon_user.is_authenticated

resp = api_client.get("/hdoupe/Matchups/api/v1/")
assert resp.status_code == 403

0 comments on commit 4319e5e

Please sign in to comment.