Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@
import pytest
import requests_mock

from leakix import Client
from leakix.client import Scope
from leakix.field import CountryField, PluginField, PortField
from leakix.plugin import Plugin
from leakix.query import MustQuery, RawQuery
from leakix import (
Client,
CountryField,
MustQuery,
Plugin,
PluginField,
PortField,
RawQuery,
Scope,
)

RESULTS_DIR = Path(__file__).parent / "results"
HOSTS_RESULTS_DIR = RESULTS_DIR / "host"
Expand Down
16 changes: 7 additions & 9 deletions tests/test_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,22 @@

import pytest

from leakix.field import (
from leakix import (
AgeField,
CountryField,
CustomField,
EmptyQuery,
IPField,
MustNotQuery,
MustQuery,
Operator,
Plugin,
PluginField,
PortField,
TimeField,
UpdateDateField,
)
from leakix.plugin import Plugin
from leakix.query import (
EmptyQuery,
MustNotQuery,
MustQuery,
RawQuery,
ShouldQuery,
TimeField,
UpdateDateField,
)


Expand Down
2 changes: 1 addition & 1 deletion tests/test_response.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from unittest.mock import Mock

from leakix.response import (
from leakix import (
ErrorResponse,
RateLimitResponse,
SuccessResponse,
Expand Down