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

Centralized NS1 record cache management with decorator

This commit is contained in:
Viranch Mehta
2021-08-24 00:01:49 -07:00
parent 025180ac3f
commit c9fc8feae2
2 changed files with 37 additions and 32 deletions

View File

@@ -2597,10 +2597,10 @@ class TestNs1Client(TestCase):
# Record delete removes from cache and removes zone
reset()
record_delete_mock.side_effect = ['hoo']
self.assertEquals('hoo', client.records_delete('unit.tests',
'aaaa.unit.tests',
'AAAA'))
record_delete_mock.side_effect = [{}]
self.assertEquals({}, client.records_delete('unit.tests',
'aaaa.unit.tests',
'AAAA'))
record_delete_mock.assert_has_calls([call('unit.tests',
'aaaa.unit.tests', 'AAAA')])
self.assertEquals({