Browse Source

Fix bug in envvar source tests when run in Python 2.7

Due to an import error the envvar source tests would not run
in Python 2.7
pull/732/head
blanariu 5 years ago
parent
commit
749f0bd90f
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      tests/test_octodns_source_envvar.py

+ 7
- 1
tests/test_octodns_source_envvar.py View File

@ -1,6 +1,12 @@
from six import text_type
from unittest import TestCase
from unittest.mock import patch
try:
# Python 3
from unittest.mock import patch
except ImportError:
# Python 2
from mock import patch
from octodns.source.envvar import EnvVarSource
from octodns.source.envvar import EnvironmentVariableNotFoundException


Loading…
Cancel
Save