Skip to content

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

fix: satisfy pyright in profile copy test

Saurav Pandaae52ce8dcdb1
diff --git a/tests/ci/browser/test_profile_copy.py b/tests/ci/browser/test_profile_copy.py
index c3938e740..d042b2d92 100644
--- a/tests/ci/browser/test_profile_copy.py
+++ b/tests/ci/browser/test_profile_copy.py
@@ -28,6 +28,7 @@ def test_chrome_profile_copy_skips_transient_lock_files(tmp_path: Path) -> None:
headless=True,
)
+ assert browser_profile.user_data_dir is not None
temp_user_data_dir = Path(browser_profile.user_data_dir)
try:
assert (temp_user_data_dir / 'Default' / 'Preferences').read_text() == '{"profile": "default"}'