Skip to content

Commit d3da543

Browse files
committed
(test) test endpoints purchase
1 parent c8cd603 commit d3da543

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clubs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{
99
"name": "Iron Temple",
1010
"email": "admin@irontemple.com",
11-
"points": "4"
11+
"points": "3"
1212
},
1313
{
1414
"name": "She Lifts",

tests/test_endpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def client(tmpdir):
1717

1818
def test_purchasePlaces_update_points(client):
1919
response = client.post("/purchasePlaces", data = {"places":1,"competition":"Fall Classic","club":"Iron Temple"})
20-
assert response.status_code == 200
20+
assert response.status_code == 200
2121
assert b'Great-booking complete!' in response.data
2222
# Verify the points and number of places have been updated
2323
with open(app.config['CLUBS_FILE']) as f:

0 commit comments

Comments
 (0)