Skip to content

Commit

Permalink
Attempted unit test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
emilhe committed Dec 28, 2023
1 parent 5f65851 commit 4392117
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_enrich.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,11 @@ def update_fahrenheit(value):

dash_duo.start_server(app)
time.sleep(0.1)
logs = dash_duo.get_logs()
logs = [
entry
for entry in dash_duo.driver.get_log("browser")
if entry["timestamp"] > dash_duo._last_ts
]
assert len(logs) <= int(os.environ.get("TEST_CYCLE_BREAKER_ALLOWED_ERRORS", "0"))
f = dash_duo.find_element("#fahrenheit")
f.send_keys("32")
Expand Down

0 comments on commit 4392117

Please sign in to comment.