Skip to content

Commit

Permalink
add root index
Browse files Browse the repository at this point in the history
  • Loading branch information
wim-vdw committed Jun 7, 2024
1 parent 8c91aed commit cc54cb0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_etag.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
testdata_does_not_exist = ['100', '101', '102']


def test_root_index(client):
response = client.post('/')
assert response.status_code == 200
data = response.get_json()
assert 'foo' in data
assert data['foo'] == 'bar'


def test_person_create_missing_json_data(client):
response = client.post('/persons')
assert response.status_code == 400
Expand Down

0 comments on commit cc54cb0

Please sign in to comment.