Skip to content

Commit

Permalink
remove some unused imports from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jnhmcknight committed Nov 6, 2023
1 parent 6ccb3c8 commit 2fd5d6a
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 44 deletions.
2 changes: 0 additions & 2 deletions tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
patch,
)

from subnet import ip_network, IPv4Network, IPv4Address

from wireguard import (
Config,
ServerConfig,
Expand Down
10 changes: 0 additions & 10 deletions tests/test_config_attributes.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@

import pytest
from unittest.mock import (
call,
mock_open,
patch,
)

from subnet import ip_network, IPv4Network, IPv4Address

from wireguard import (
Config,
ServerConfig,
Peer,
Server,
)
from wireguard.utils import IPAddressSet


def test_description():
Expand Down
6 changes: 0 additions & 6 deletions tests/test_customizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,13 @@
from subnet import (
ip_address,
IPv4Address,
IPv6Address,
)

from wireguard import (
INTERFACE,
PORT,
Config,
ServerConfig,
Interface,
Peer,
Server,
)
from wireguard.utils import public_key


class MyCustomInterface(Interface):
Expand Down
12 changes: 0 additions & 12 deletions tests/test_json.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@

import functools
import json
import pytest

from subnet import (
ip_network,
IPv4Network,
IPv4Address,
)

from wireguard import (
INTERFACE,
PORT,
Config,
ServerConfig,
Peer,
Server,
)
from wireguard.utils import generate_key, public_key


def test_server_json_dump_ipv4():
Expand Down
2 changes: 0 additions & 2 deletions tests/test_peers.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
INTERFACE,
PORT,
Config,
ServerConfig,
Peer,
Server,
)
from wireguard.utils import public_key

Expand Down
11 changes: 0 additions & 11 deletions tests/test_qrcode.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@

import pytest
from unittest.mock import (
call,
mock_open,
patch,
)

from subnet import ip_network, IPv4Network, IPv4Address

from wireguard import (
Config,
ServerConfig,
Peer,
Server,
)
from wireguard.utils import IPAddressSet


def test_peer_qrcode():
Expand Down
1 change: 0 additions & 1 deletion tests/test_server.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

import functools
import pytest

from subnet import (
Expand Down

0 comments on commit 2fd5d6a

Please sign in to comment.