more than 12 test ok
This commit is contained in:
@@ -6,6 +6,7 @@ from bs4 import BeautifulSoup
|
||||
EMAIL1 = "admin@irontemple.com"
|
||||
EMAIL2 = "john@simplylift.co"
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def club1():
|
||||
data = {"competition": "Spring Festival", "club": "Iron Temple"}
|
||||
@@ -27,4 +28,3 @@ def connect(client):
|
||||
soup = BeautifulSoup(response.data, 'html.parser')
|
||||
return soup
|
||||
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@ class TestPlaces:
|
||||
|
||||
def test_should_refuse_more_than_12(self, client, club1):
|
||||
club1.update({"places": 13})
|
||||
response = client.post('/puchasePlaces', data=club1)
|
||||
print(response.data)
|
||||
response = client.post('/purchasePlaces', data=club1)
|
||||
soup = BeautifulSoup(response.data, "html.parser")
|
||||
assert "You can't book more than 12 places" == soup.li.text
|
||||
|
||||
Reference in New Issue
Block a user