mirror of
https://github.com/soxoj/maigret.git
synced 2026-05-15 02:45:36 +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)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
"""Maigret command-line arguments parsing tests"""
|
||||
|
||||
from argparse import Namespace
|
||||
from typing import Dict, Any
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
"""Maigret checking logic test functions"""
|
||||
|
||||
import pytest
|
||||
import asyncio
|
||||
import logging
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
"""Maigret main module test functions"""
|
||||
|
||||
import asyncio
|
||||
import copy
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
"""Maigret reports test functions"""
|
||||
|
||||
import copy
|
||||
import json
|
||||
import os
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
"""Maigret Database test functions"""
|
||||
|
||||
from maigret.sites import MaigretDatabase, MaigretSite
|
||||
|
||||
EXAMPLE_DB = {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
"""Maigret utils test functions"""
|
||||
|
||||
import itertools
|
||||
import re
|
||||
|
||||
|
||||
Reference in New Issue
Block a user