diff --git a/swiss_locator/tests/test_locator_filter.py b/swiss_locator/tests/test_locator_filter.py index 31f4a60..92418df 100644 --- a/swiss_locator/tests/test_locator_filter.py +++ b/swiss_locator/tests/test_locator_filter.py @@ -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_ = [] @@ -55,7 +55,6 @@ def got_hit(result): loc.fetchResults("pixelkarte", context) - while not found: - spy.wait(1000) + spy.wait(1000) self.assertTrue(found)