Skip to content

Commit

Permalink
add tests for root/index & oops pages
Browse files Browse the repository at this point in the history
  • Loading branch information
sommersoft committed May 29, 2020
1 parent 00ffd56 commit 93bcba4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_index.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
def test_root_path(client):
url = '/'

response = client.get(url)

assert response.status_code < 300
6 changes: 6 additions & 0 deletions tests/test_oops.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
def test_oops(client):
url = f'/fake-path'

response = client.get(url)

assert response.status_code == 404

0 comments on commit 93bcba4

Please sign in to comment.