diff --git a/conftest.py b/conftest.py index 2cd5dfb..7eb12ed 100644 --- a/conftest.py +++ b/conftest.py @@ -30,7 +30,7 @@ from django.utils.translation import activate # Note: fixture must be "function" scope (default), see https://github.com/pelme/pytest_django/issues/33 @pytest.fixture(autouse=True) -def db_init(db): +def db_init(db): # note: db is a predefined fixture and required here to have the db available """ Init the database contents for testing, so we have a service domain, ... """ diff --git a/nsupdate/api/views.py b/nsupdate/api/views.py index 18c0463..0e3a22f 100644 --- a/nsupdate/api/views.py +++ b/nsupdate/api/views.py @@ -1,7 +1,5 @@ # -*- coding: utf-8 -*- -import os - import logging logger = logging.getLogger(__name__) diff --git a/nsupdate/main/dnstools.py b/nsupdate/main/dnstools.py index 745191e..598c8ca 100644 --- a/nsupdate/main/dnstools.py +++ b/nsupdate/main/dnstools.py @@ -27,7 +27,6 @@ import dns.update import dns.tsig import dns.tsigkeyring -from django.conf import settings from django.utils.timezone import now diff --git a/nsupdate/main/templates/main/host.html b/nsupdate/main/templates/main/host.html index 8a7e4de..0df555f 100644 --- a/nsupdate/main/templates/main/host.html +++ b/nsupdate/main/templates/main/host.html @@ -36,17 +36,17 @@ We populated the input fields for the new addresses with your currently detected remote addresses.