Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

style: flatten assert to pass pre-commit formatter

ShawnPana454dbfdaba17
diff --git a/tests/ci/test_cli_lifecycle.py b/tests/ci/test_cli_lifecycle.py
index fa216b215..2cf90122f 100644
--- a/tests/ci/test_cli_lifecycle.py
+++ b/tests/ci/test_cli_lifecycle.py
@@ -286,11 +286,7 @@ def test_close_orphaned_daemon(home_dir):
# - "Browser closed" (killed orphan successfully)
# - "No active browser session" (daemon already exited)
# - "daemon may still be shutting down" on stderr (SIGTERM sent but PID hasn't died yet)
- assert (
- 'Browser closed' in result.stdout
- or 'No active browser session' in result.stdout
- or 'shutting down' in result.stderr
- )
+ assert 'Browser closed' in result.stdout or 'No active browser session' in result.stdout or 'shutting down' in result.stderr
# Clean up — daemon may still be shutting down asynchronously
_kill_daemon(pid)