mirror of
https://github.com/soxoj/maigret.git
synced 2026-05-15 19:05:43 +00:00
Refactored self-check method, code formatting, small lint fixes (#1942)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
"""Maigret activation test functions"""
|
||||
|
||||
import json
|
||||
|
||||
import aiohttp
|
||||
@@ -41,7 +42,11 @@ async def test_import_aiohttp_cookies():
|
||||
|
||||
cookie_jar = import_aiohttp_cookies(cookies_filename)
|
||||
# new aiohttp support
|
||||
assert list(cookie_jar._cookies.keys()) in (['xss.is', 'httpbin.org'], [('xss.is', '/'), ('httpbin.org', '/')], [('xss.is', ''), ('httpbin.org', '')])
|
||||
assert list(cookie_jar._cookies.keys()) in (
|
||||
['xss.is', 'httpbin.org'],
|
||||
[('xss.is', '/'), ('httpbin.org', '/')],
|
||||
[('xss.is', ''), ('httpbin.org', '')],
|
||||
)
|
||||
|
||||
url = 'https://httpbin.org/cookies'
|
||||
connector = aiohttp.TCPConnector(ssl=False)
|
||||
|
||||
Reference in New Issue
Block a user