Merge branch 'QA' into bug/issue5
This commit is contained in:
@@ -16,7 +16,6 @@ class TestPoints:
|
||||
club1.update({"places": points-1})
|
||||
response = client.post('/purchasePlaces', data=club1)
|
||||
soup = BeautifulSoup(response.data, "html.parser")
|
||||
# assert "Great-booking complete!" == soup.li.text
|
||||
assert f"Great ! "+str(points-1)+" places booked for "+club1['competition'] == soup.li.text
|
||||
|
||||
|
||||
@@ -28,7 +27,6 @@ class TestPlaces:
|
||||
soup = BeautifulSoup(response.data, "html.parser")
|
||||
assert "You can't book more than 12 places" == soup.li.text
|
||||
|
||||
|
||||
def test_should_refuse_more_12_total(self, client, club1):
|
||||
club1.update({"places": 2})
|
||||
response = client.post('/purchasePlaces', data=club1)
|
||||
@@ -39,6 +37,7 @@ class TestPlaces:
|
||||
soup = BeautifulSoup(response.data, "html.parser")
|
||||
assert "You already booked 12 places for "+club1['competition'] == soup.li.text
|
||||
|
||||
|
||||
class TestDate:
|
||||
|
||||
def test_should_not_display_book_link_for_past_competitions(self, connect):
|
||||
@@ -46,7 +45,6 @@ class TestDate:
|
||||
assert not li[0].a
|
||||
assert li[1].a
|
||||
|
||||
|
||||
def test_forged_url_on_past_competition_should_raise_flash(self, client):
|
||||
url = '/book/Spring Festival/Iron Temple'
|
||||
response = client.get(url)
|
||||
|
||||
Reference in New Issue
Block a user