Move custom pytest markers into isctest module
Keep our pytest code more organized by moving the shared code for custom pytest markers into a dedicated isctest/mark.py module.
This commit is contained in:
@@ -26,7 +26,7 @@ import dns.query
|
||||
import dns.rdataclass
|
||||
import dns.rdatatype
|
||||
|
||||
import pytest_custom_markers # pylint: disable=import-error
|
||||
import isctest.mark # pylint: disable=import-error
|
||||
|
||||
|
||||
TIMEOUT = 10
|
||||
@@ -185,7 +185,7 @@ def test_long_axfr(named_port):
|
||||
assert soa is not None
|
||||
|
||||
|
||||
@pytest_custom_markers.flaky(max_runs=3)
|
||||
@isctest.mark.flaky(max_runs=3)
|
||||
def test_send_timeout(named_port):
|
||||
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
|
||||
sock.connect(("10.53.0.1", named_port))
|
||||
@@ -212,7 +212,7 @@ def test_send_timeout(named_port):
|
||||
raise EOFError from e
|
||||
|
||||
|
||||
@pytest_custom_markers.long_test
|
||||
@isctest.mark.long_test
|
||||
def test_max_transfer_idle_out(named_port):
|
||||
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
|
||||
sock.connect(("10.53.0.1", named_port))
|
||||
@@ -246,7 +246,7 @@ def test_max_transfer_idle_out(named_port):
|
||||
assert soa is None
|
||||
|
||||
|
||||
@pytest_custom_markers.long_test
|
||||
@isctest.mark.long_test
|
||||
def test_max_transfer_time_out(named_port):
|
||||
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
|
||||
sock.connect(("10.53.0.1", named_port))
|
||||
|
||||
Reference in New Issue
Block a user