Skip to content

Commit

Permalink
Update test_locator_filter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids authored Jul 27, 2023
1 parent aed4cde commit a15a964
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions swiss_locator/tests/test_locator_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ def setUp(self):
pass

def testSwissLocatorFilterWMTS(self):
found = False
def got_hit(result):
print(result)
print(result.displayString)
got_hit._results_.append(result.displayString)
if result.startswith("National Map"):
found = True

got_hit._results_ = []

Expand All @@ -54,11 +55,7 @@ def got_hit(result):

loc.fetchResults("pixelkarte", context)

spy.wait(1000)
while not found:
spy.wait(1000)

found = False
for result in got_hit._results_:
if result.startswith("National Map"):
found = True
break
self.assertTrue(found)

0 comments on commit a15a964

Please sign in to comment.