Skip to content

Commit

Permalink
tests: move login test to a new file
Browse files Browse the repository at this point in the history
So that additional login tests can be added
  • Loading branch information
robvdl committed Mar 7, 2024
1 parent c9d018c commit 817bdff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tests/test_app.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
def test_login_required(testapp):
response = testapp.get("/", status=200)
assert b"Sambal Login" in response.body


def test_notfound(testapp):
response = testapp.get("/does-not-exist/", status=404)
assert response.status_code == 404
3 changes: 3 additions & 0 deletions tests/test_login.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
def test_login_required(testapp):
response = testapp.get("/", status=200)
assert b"Sambal Login" in response.body

0 comments on commit 817bdff

Please sign in to comment.