Skip to content

Commit

Permalink
Use fixture for get_one
Browse files Browse the repository at this point in the history
  • Loading branch information
amandine-sahl committed Jun 26, 2023
1 parent acfdc09 commit 1a5215f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/test/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def test_get_events(self):
response = self.client.get(url_for("app_routes.get_events"))
assert response.status_code == 200

def test_get_one_event(self):
def test_get_one_event(self, events):
data = GTEvents.query.limit(1).one()
assert (
self.client.get(
Expand Down

0 comments on commit 1a5215f

Please sign in to comment.