Skip to content

Commit ce847fa

Browse files
authored
Merge pull request #226 from DataIntegrationGroup/BDMS-220-Implement-feature-in-Thing-API-for-BDMS-218
BDMS-220
2 parents 39a3887 + 16ce4aa commit ce847fa

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

tests/features/steps/api_fixture.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,17 @@
3737
Thing,
3838
LocationThingAssociation,
3939
Sensor,
40-
LexiconTerm,
4140
Group,
4241
GroupThingAssociation,
4342
)
4443
from db.engine import session_ctx
4544

4645
with session_ctx() as session:
47-
if session.query(LexiconTerm).count() == 0:
48-
erase_and_rebuild_db(session)
46+
# if session.query(LexiconTerm).count() == 0:
47+
erase_and_rebuild_db(session)
4948

50-
init_lexicon()
51-
init_parameter()
49+
init_lexicon()
50+
init_parameter()
5251

5352

5453
def add_location(lid):
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
@when('the user requests things with type "water well"')
2121
def step_impl(context):
22-
context.response = context.client.get("/thing", params={"thing_type": "water well"})
22+
context.response = context.client.get("/thing/water-well")
2323

2424

2525
@then("the response should include at least one thing")
@@ -37,7 +37,7 @@ def step_impl(context):
3737

3838
@when('the user requests things with type "spring"')
3939
def step_impl(context):
40-
context.response = context.client.get("/thing", params={"thing_type": "spring"})
40+
context.response = context.client.get("/thing/spring")
4141

4242

4343
@then('the response should only include things of type "spring"')

0 commit comments

Comments
 (0)