File tree Expand file tree Collapse file tree 2 files changed +11
-17
lines changed Expand file tree Collapse file tree 2 files changed +11
-17
lines changed Original file line number Diff line number Diff line change @@ -55,17 +55,15 @@ def ci_setup() -> t.Generator:
55
55
)
56
56
page = browser .new_page ()
57
57
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
+ ])
69
67
browser .close ()
70
68
cookie_file = Path (cookies_home ) / "Default" / "Cookies"
71
69
yield cookie_file
@@ -82,9 +80,7 @@ def test_warns_for_string_browser(ci_setup: str) -> None:
82
80
never_been_here = "http://{0}.com" .format (uuid4 ())
83
81
with pytest .warns (
84
82
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`." ),
88
84
):
89
85
empty_dict = chrome_cookies (
90
86
never_been_here ,
Original file line number Diff line number Diff line change @@ -343,9 +343,7 @@ def test_warns_for_string_browser(set_cookie: None) -> None:
343
343
"""Browser should be passed as `BrowserType` and warns for strings."""
344
344
with pytest .warns (
345
345
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`." ),
349
347
):
350
348
cookies = t .cast (
351
349
dict ,
You can’t perform that action at this time.
0 commit comments