Skip to content

Commit

Permalink
Revert "black"
Browse files Browse the repository at this point in the history
This reverts commit 1cceb50.
  • Loading branch information
n8henrie committed May 14, 2024
1 parent 1cceb50 commit f84a5b2
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions tests/test_firefox.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit f84a5b2

Please sign in to comment.