Skip to content

Commit 2ba90e0

Browse files
committed
format
1 parent 481faaa commit 2ba90e0

File tree

2 files changed

+11
-17
lines changed

2 files changed

+11
-17
lines changed

tests/test_chrome.py

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,15 @@ def ci_setup() -> t.Generator:
5555
)
5656
page = browser.new_page()
5757
page.goto("https://n8henrie.com")
58-
browser.add_cookies(
59-
[
60-
{
61-
"name": "test_pycookiecheat",
62-
"value": "It worked!",
63-
"domain": "n8henrie.com",
64-
"path": "/",
65-
"expires": int(time.time()) + 300,
66-
}
67-
]
68-
)
58+
browser.add_cookies([
59+
{
60+
"name": "test_pycookiecheat",
61+
"value": "It worked!",
62+
"domain": "n8henrie.com",
63+
"path": "/",
64+
"expires": int(time.time()) + 300,
65+
}
66+
])
6967
browser.close()
7068
cookie_file = Path(cookies_home) / "Default" / "Cookies"
7169
yield cookie_file
@@ -82,9 +80,7 @@ def test_warns_for_string_browser(ci_setup: str) -> None:
8280
never_been_here = "http://{0}.com".format(uuid4())
8381
with pytest.warns(
8482
DeprecationWarning,
85-
match=(
86-
"Please pass `browser` as a `BrowserType` " "instead of `str`."
87-
),
83+
match=("Please pass `browser` as a `BrowserType` instead of `str`."),
8884
):
8985
empty_dict = chrome_cookies(
9086
never_been_here,

tests/test_firefox.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,7 @@ def test_warns_for_string_browser(set_cookie: None) -> None:
343343
"""Browser should be passed as `BrowserType` and warns for strings."""
344344
with pytest.warns(
345345
DeprecationWarning,
346-
match=(
347-
"Please pass `browser` as a `BrowserType` " "instead of `str`."
348-
),
346+
match=("Please pass `browser` as a `BrowserType` instead of `str`."),
349347
):
350348
cookies = t.cast(
351349
dict,

0 commit comments

Comments
 (0)