Skip to content

Commit 947d4d0

Browse files
committed
lint
1 parent ff66dcd commit 947d4d0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dash/testing/wait.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# pylint: disable=too-few-public-methods
22
"""Utils methods for pytest-dash such wait_for wrappers."""
3+
34
import time
45
import logging
56
from selenium.common.exceptions import WebDriverException
@@ -108,7 +109,9 @@ def __call__(self, driver):
108109
elem = self._get_element(driver)
109110
logger.debug("text to equal {%s} => expected %s", elem.text, self.text)
110111
value = elem.get_attribute("value")
111-
return str(elem.text) == self.text or (value is not None and str(value) == self.text)
112+
return str(elem.text) == self.text or (
113+
value is not None and str(value) == self.text
114+
)
112115
except WebDriverException:
113116
return False
114117

0 commit comments

Comments
 (0)