From a865bb9f327b5861ca0a9ba86c4a264dc469e1d5 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sat, 28 Sep 2013 15:56:35 +0200 Subject: [PATCH] tests: use relative imports, make tests a package --- nsupdate/main/_tests/__init__.py | 0 nsupdate/main/_tests/test_dnstools.py | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 nsupdate/main/_tests/__init__.py diff --git a/nsupdate/main/_tests/__init__.py b/nsupdate/main/_tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/nsupdate/main/_tests/test_dnstools.py b/nsupdate/main/_tests/test_dnstools.py index d4e2a67..04e26a3 100644 --- a/nsupdate/main/_tests/test_dnstools.py +++ b/nsupdate/main/_tests/test_dnstools.py @@ -4,9 +4,9 @@ Tests for dnstools module. import pytest -from nsupdate.main.dnstools import (query_ns, parse_name, update_ns, - BASEDOMAIN, NONEXISTING_HOST, WWW_HOST, WWW_IPV4_HOST, WWW_IPV4_IP, - WWW_IPV6_HOST, WWW_IPV6_IP, ) +from ..dnstools import (query_ns, parse_name, update_ns, + BASEDOMAIN, NONEXISTING_HOST, + WWW_HOST, WWW_IPV4_HOST, WWW_IPV4_IP, WWW_IPV6_HOST, WWW_IPV6_IP, ) from dns.resolver import NXDOMAIN