File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737 Thing ,
3838 LocationThingAssociation ,
3939 Sensor ,
40- LexiconTerm ,
4140 Group ,
4241 GroupThingAssociation ,
4342)
4443from db .engine import session_ctx
4544
4645with 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
5453def add_location (lid ):
Original file line number Diff line number Diff line change 1919
2020@when ('the user requests things with type "water well"' )
2121def 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"' )
3939def 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"' )
You can’t perform that action at this time.
0 commit comments