Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Diapolo10 committed Oct 28, 2023
2 parents 8aa54fa + d94d773 commit 0e36ec4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions tests/test_address.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
"""Unit tests for iplib3.address."""

import pytest

from iplib3 import IPAddress
from iplib3.address import IPv6, PureAddress
from iplib3.constants import IPV6_MAX_VALUE
from tests.test_cases_address import (
TEST_CASES_IPADDRESS,
TEST_CASES_IPADDRESS_AS_IPV4,
Expand Down Expand Up @@ -28,10 +32,6 @@
TEST_CASES_PURE_ADDRESS_PORT_SETTER_ERROR,
)

from iplib3 import IPAddress
from iplib3.address import IPv6, PureAddress
from iplib3.constants import IPV6_MAX_VALUE


@pytest.mark.parametrize(
"pure_address",
Expand Down
10 changes: 5 additions & 5 deletions tests/test_subnet.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
"""Unit tests for iplib3.subnet."""

import pytest

from iplib3.subnet import (
PureSubnetMask,
SubnetMask,
)
from tests.test_cases_subnet import (
TEST_CASES_PURE_SUBNET_MASK_EQUALITY,
TEST_CASES_PURE_SUBNET_MASK_INEQUALITY,
Expand All @@ -15,11 +20,6 @@
TEST_CASES_SUBNET_MASK_SUBNET_TYPE,
)

from iplib3.subnet import (
PureSubnetMask,
SubnetMask,
)


def test_pure_subnet_mask():
"""Test the PureSubnetMask base class."""
Expand Down
22 changes: 11 additions & 11 deletions tests/test_validators.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
"""Unit tests for iplib3.validators."""

import pytest

from iplib3.validators import (
_ipv4_subnet_validator,
_ipv6_subnet_validator,
_port_stripper,
ip_validator,
ipv4_validator,
ipv6_validator,
port_validator,
subnet_validator,
)
from tests.test_cases_validators import (
TEST_CASES_IP_VALIDATOR,
TEST_CASES_IPV4_SUBNET_VALIDATOR,
Expand All @@ -15,17 +26,6 @@
TEST_CASES_SUBNET_VALIDATOR,
)

from iplib3.validators import (
_ipv4_subnet_validator,
_ipv6_subnet_validator,
_port_stripper,
ip_validator,
ipv4_validator,
ipv6_validator,
port_validator,
subnet_validator,
)


@pytest.mark.parametrize(
("port_num", "excepted_output"),
Expand Down

0 comments on commit 0e36ec4

Please sign in to comment.