From e415e9ff42bd08a43a712ab661b5aedb3b9ca2fb Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Thu, 27 Jul 2023 11:09:56 +0200 Subject: [PATCH] Update test_locator_filter.py --- swiss_locator/tests/test_locator_filter.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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)