diff --git a/tests/test_beer.py b/tests/test_beer.py index 279dcf7..4ae8827 100644 --- a/tests/test_beer.py +++ b/tests/test_beer.py @@ -21,3 +21,16 @@ def test_slash(client): response = client.get('/') assert response.status_code == 200 assert b'beer' 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'beer' in response.data + + response = client.get('/'+hours+'/'+minutes) + assert response.status_code == 200 + assert b'beer' in response.data