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:
@@ -55,7 +55,12 @@ class TestZoneFileSource(TestCase):
|
|||||||
self.assertEquals(1, len(valid.records))
|
self.assertEquals(1, len(valid.records))
|
||||||
|
|
||||||
def test_zonefiles_without_extension(self):
|
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')
|
source = ZoneFileSource('test', './tests/zones')
|
||||||
# Load zonefiles without a specified file extension
|
# Load zonefiles without a specified file extension
|
||||||
valid = Zone('unit.tests.', [])
|
valid = Zone('unit.tests.', [])
|
||||||
|
Reference in New Issue
Block a user