From f84a5b2ff526d4ae6f7e13ebc7bb23880cfa822b Mon Sep 17 00:00:00 2001 From: Nathan Henrie Date: Tue, 14 May 2024 00:56:41 -0600 Subject: [PATCH] Revert "black" This reverts commit 1cceb503aa65712e7af4c3c78d41debcb09243e3. --- tests/test_firefox.py | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/tests/test_firefox.py b/tests/test_firefox.py index 71b5a09..7be4e00 100644 --- a/tests/test_firefox.py +++ b/tests/test_firefox.py @@ -219,12 +219,9 @@ def set_cookie(profiles: Path, cookie_server: int) -> t.Iterator[None]: synchronous playwright API doesn't support that. """ profile_dir = profiles / TEST_PROFILE_DIR - with ( - sync_playwright() as p, - p.firefox.launch_persistent_context( - user_data_dir=profile_dir - ) as context, - ): + with sync_playwright() as p, p.firefox.launch_persistent_context( + user_data_dir=profile_dir + ) as context: context.new_page().goto( f"http://localhost:{cookie_server}", # Fail quickly because it's localhost. If it's not there in 1s the @@ -324,11 +321,8 @@ def test_load_firefox_cookie_db_copy_error( ) -> None: """Test loading Firefox cookies DB when copying fails.""" # deliberately break copy function - with ( - patch("shutil.copy2"), - pytest.raises( - FileNotFoundError, match="no Firefox cookies DB in temp dir" - ), + with patch("shutil.copy2"), pytest.raises( + FileNotFoundError, match="no Firefox cookies DB in temp dir" ): _load_firefox_cookie_db( profiles,