1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

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

This commit is contained in:
Ross McFarland
2021-01-25 15:50:34 -08:00
parent ea943e606e
commit 37381bd274

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.', [])