unit-test2 #10

Merged
kleph merged 5 commits from unit-test2 into master 2020-03-03 01:30:27 +01:00
Showing only changes of commit ff6c1f586e - Show all commits

View file

@ -21,3 +21,16 @@ def test_slash(client):
response = client.get('/')
assert response.status_code == 200
assert b'<title>beer</title>' in response.data
def test_parameters(client):
"""Test wiwth no param"""
hours = '18'
minutes = '30'
response = client.get('/'+hours)
assert response.status_code == 200
assert b'<title>beer</title>' in response.data
response = client.get('/'+hours+'/'+minutes)
assert response.status_code == 200
assert b'<title>beer</title>' in response.data