diff --git a/tests/features/steps/api_fixture.py b/tests/features/steps/api_fixture.py index c5f875531..56581fcfd 100644 --- a/tests/features/steps/api_fixture.py +++ b/tests/features/steps/api_fixture.py @@ -37,18 +37,17 @@ Thing, LocationThingAssociation, Sensor, - LexiconTerm, Group, GroupThingAssociation, ) from db.engine import session_ctx with session_ctx() as session: - if session.query(LexiconTerm).count() == 0: - erase_and_rebuild_db(session) + # if session.query(LexiconTerm).count() == 0: + erase_and_rebuild_db(session) - init_lexicon() - init_parameter() + init_lexicon() + init_parameter() def add_location(lid): diff --git a/tests/features/steps/thing-query.py b/tests/features/steps/thing-path.py similarity index 89% rename from tests/features/steps/thing-query.py rename to tests/features/steps/thing-path.py index 47a61d896..0452ad908 100644 --- a/tests/features/steps/thing-query.py +++ b/tests/features/steps/thing-path.py @@ -19,7 +19,7 @@ @when('the user requests things with type "water well"') def step_impl(context): - context.response = context.client.get("/thing", params={"thing_type": "water well"}) + context.response = context.client.get("/thing/water-well") @then("the response should include at least one thing") @@ -37,7 +37,7 @@ def step_impl(context): @when('the user requests things with type "spring"') def step_impl(context): - context.response = context.client.get("/thing", params={"thing_type": "spring"}) + context.response = context.client.get("/thing/spring") @then('the response should only include things of type "spring"')