mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Additional test checking Zone threshold defaults to None
This commit is contained in:
@@ -26,3 +26,9 @@ zones:
|
||||
- in
|
||||
targets:
|
||||
- dump
|
||||
|
||||
defaultthresholds.tests.:
|
||||
sources:
|
||||
- in
|
||||
targets:
|
||||
- dump
|
||||
|
||||
@@ -1311,6 +1311,12 @@ class TestManager(TestCase):
|
||||
self.assertEqual(0.02, subzone.update_pcent_threshold)
|
||||
self.assertEqual(0.01, subzone.delete_pcent_threshold)
|
||||
|
||||
# test default of None to ensure Provider precedence
|
||||
zone_with_defaults = manager.get_zone('defaultthresholds.tests.')
|
||||
|
||||
self.assertIsNone(zone_with_defaults.update_pcent_threshold)
|
||||
self.assertIsNone(zone_with_defaults.delete_pcent_threshold)
|
||||
|
||||
|
||||
class TestMainThreadExecutor(TestCase):
|
||||
def test_success(self):
|
||||
|
||||
Reference in New Issue
Block a user