mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
updated black formatting
This commit is contained in:
@ -475,7 +475,6 @@ class Manager(object):
|
|||||||
force=False,
|
force=False,
|
||||||
plan_output_fh=stdout,
|
plan_output_fh=stdout,
|
||||||
):
|
):
|
||||||
|
|
||||||
self.log.info(
|
self.log.info(
|
||||||
'sync: eligible_zones=%s, eligible_targets=%s, dry_run=%s, '
|
'sync: eligible_zones=%s, eligible_targets=%s, dry_run=%s, '
|
||||||
'force=%s, plan_output_fh=%s',
|
'force=%s, plan_output_fh=%s',
|
||||||
|
@ -78,7 +78,6 @@ class Plan(object):
|
|||||||
self.existing
|
self.existing
|
||||||
and len(self.existing.records) >= self.MIN_EXISTING_RECORDS
|
and len(self.existing.records) >= self.MIN_EXISTING_RECORDS
|
||||||
):
|
):
|
||||||
|
|
||||||
existing_record_count = len(self.existing.records)
|
existing_record_count = len(self.existing.records)
|
||||||
if existing_record_count > 0:
|
if existing_record_count > 0:
|
||||||
update_pcent = (
|
update_pcent = (
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
|
|
||||||
class BaseSource(object):
|
class BaseSource(object):
|
||||||
|
|
||||||
SUPPORTS_MULTIVALUE_PTR = False
|
SUPPORTS_MULTIVALUE_PTR = False
|
||||||
SUPPORTS_POOL_VALUE_STATUS = False
|
SUPPORTS_POOL_VALUE_STATUS = False
|
||||||
SUPPORTS_ROOT_NS = False
|
SUPPORTS_ROOT_NS = False
|
||||||
|
@ -11,7 +11,6 @@ from octodns.zone import Zone
|
|||||||
|
|
||||||
class TestAutoArpa(TestCase):
|
class TestAutoArpa(TestCase):
|
||||||
def test_empty_zone(self):
|
def test_empty_zone(self):
|
||||||
|
|
||||||
# empty zone no records
|
# empty zone no records
|
||||||
zone = Zone('unit.tests.', [])
|
zone = Zone('unit.tests.', [])
|
||||||
aa = AutoArpa('auto-arpa')
|
aa = AutoArpa('auto-arpa')
|
||||||
|
@ -10,7 +10,6 @@ from octodns.zone import Zone
|
|||||||
|
|
||||||
class TestRecordIp(TestCase):
|
class TestRecordIp(TestCase):
|
||||||
def test_ipv4_value_rdata_text(self):
|
def test_ipv4_value_rdata_text(self):
|
||||||
|
|
||||||
# anything goes, we're a noop
|
# anything goes, we're a noop
|
||||||
for s in (
|
for s in (
|
||||||
None,
|
None,
|
||||||
|
@ -68,7 +68,6 @@ class TestRecordMx(TestCase):
|
|||||||
a.__repr__()
|
a.__repr__()
|
||||||
|
|
||||||
def test_mx_value_rdata_text(self):
|
def test_mx_value_rdata_text(self):
|
||||||
|
|
||||||
# empty string won't parse
|
# empty string won't parse
|
||||||
with self.assertRaises(RrParseError):
|
with self.assertRaises(RrParseError):
|
||||||
MxValue.parse_rdata_text('')
|
MxValue.parse_rdata_text('')
|
||||||
|
@ -63,7 +63,6 @@ class TestRecordPtr(TestCase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def test_ptr_rdata_text(self):
|
def test_ptr_rdata_text(self):
|
||||||
|
|
||||||
# anything goes, we're a noop
|
# anything goes, we're a noop
|
||||||
for s in (
|
for s in (
|
||||||
None,
|
None,
|
||||||
|
@ -81,7 +81,6 @@ class TestRecordSrv(TestCase):
|
|||||||
a.__repr__()
|
a.__repr__()
|
||||||
|
|
||||||
def test_srv_value_rdata_text(self):
|
def test_srv_value_rdata_text(self):
|
||||||
|
|
||||||
# empty string won't parse
|
# empty string won't parse
|
||||||
with self.assertRaises(RrParseError):
|
with self.assertRaises(RrParseError):
|
||||||
SrvValue.parse_rdata_text('')
|
SrvValue.parse_rdata_text('')
|
||||||
|
@ -85,7 +85,6 @@ class TestRecordSshfp(TestCase):
|
|||||||
a.__repr__()
|
a.__repr__()
|
||||||
|
|
||||||
def test_sshfp_value_rdata_text(self):
|
def test_sshfp_value_rdata_text(self):
|
||||||
|
|
||||||
# empty string won't parse
|
# empty string won't parse
|
||||||
with self.assertRaises(RrParseError):
|
with self.assertRaises(RrParseError):
|
||||||
SshfpValue.parse_rdata_text('')
|
SshfpValue.parse_rdata_text('')
|
||||||
|
@ -11,7 +11,6 @@ from octodns.zone import Zone
|
|||||||
|
|
||||||
class TestRecordTarget(TestCase):
|
class TestRecordTarget(TestCase):
|
||||||
def test_target_rdata_text(self):
|
def test_target_rdata_text(self):
|
||||||
|
|
||||||
# anything goes, we're a noop
|
# anything goes, we're a noop
|
||||||
for s in (
|
for s in (
|
||||||
None,
|
None,
|
||||||
|
@ -118,7 +118,6 @@ class TestRecordTlsa(TestCase):
|
|||||||
a.__repr__()
|
a.__repr__()
|
||||||
|
|
||||||
def test_tsla_value_rdata_text(self):
|
def test_tsla_value_rdata_text(self):
|
||||||
|
|
||||||
# empty string won't parse
|
# empty string won't parse
|
||||||
with self.assertRaises(RrParseError):
|
with self.assertRaises(RrParseError):
|
||||||
TlsaValue.parse_rdata_text('')
|
TlsaValue.parse_rdata_text('')
|
||||||
|
@ -150,7 +150,6 @@ class TestTinyDnsFileSource(TestCase):
|
|||||||
self.assertEqual([], changes)
|
self.assertEqual([], changes)
|
||||||
|
|
||||||
def test_populate_in_addr_arpa(self):
|
def test_populate_in_addr_arpa(self):
|
||||||
|
|
||||||
got = Zone('3.2.10.in-addr.arpa.', [])
|
got = Zone('3.2.10.in-addr.arpa.', [])
|
||||||
self.source.populate(got)
|
self.source.populate(got)
|
||||||
|
|
||||||
|
@ -192,7 +192,6 @@ class TestZone(TestCase):
|
|||||||
self.assertTrue('whitespace not allowed' in str(ctx.exception))
|
self.assertTrue('whitespace not allowed' in str(ctx.exception))
|
||||||
|
|
||||||
def test_sub_zones(self):
|
def test_sub_zones(self):
|
||||||
|
|
||||||
# NS for exactly the sub is allowed
|
# NS for exactly the sub is allowed
|
||||||
zone = Zone('unit.tests.', set(['sub', 'barred']))
|
zone = Zone('unit.tests.', set(['sub', 'barred']))
|
||||||
record = Record.new(
|
record = Record.new(
|
||||||
|
Reference in New Issue
Block a user