Browse Source

Skip the axfr default name test if we can't create the needed tests file

pull/665/head
Ross McFarland 5 years ago
parent
commit
37381bd274
No known key found for this signature in database GPG Key ID: 61C10C4FC8FE4A89
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      tests/test_octodns_source_axfr.py

+ 6
- 1
tests/test_octodns_source_axfr.py View File

@ -55,7 +55,12 @@ class TestZoneFileSource(TestCase):
self.assertEquals(1, len(valid.records))
def test_zonefiles_without_extension(self):
copyfile('./tests/zones/unit.tests.tst', './tests/zones/unit.tests.')
try:
copyfile('./tests/zones/unit.tests.tst',
'./tests/zones/unit.tests.')
except:
self.skipTest('Unable to create unit.tests. (ending with .) so '
'skipping default filename testing.')
source = ZoneFileSource('test', './tests/zones')
# Load zonefiles without a specified file extension
valid = Zone('unit.tests.', [])


Loading…
Cancel
Save