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 a15a964 commit e415e9f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions swiss_locator/tests/test_locator_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def testSwissLocatorFilterWMTS(self):
found = False
def got_hit(result):
print(result.displayString)
if result.startswith("National Map"):
if result.displayString.startswith("National Map"):
found = True

got_hit._results_ = []
Expand All @@ -55,7 +55,6 @@ def got_hit(result):

loc.fetchResults("pixelkarte", context)

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

self.assertTrue(found)

0 comments on commit e415e9f

Please sign in to comment.