Browse Source

OvhProvider python3

pull/384/head
Ross McFarland 6 years ago
parent
commit
37543e6a76
No known key found for this signature in database GPG Key ID: 61C10C4FC8FE4A89
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      octodns/provider/ovh.py
  2. +2
    -2
      tests/test_octodns_provider_ovh.py

+ 1
- 1
octodns/provider/ovh.py View File

@ -345,7 +345,7 @@ class OvhProvider(BaseProvider):
@staticmethod
def _is_valid_dkim_key(key):
try:
base64.decodestring(key)
base64.decodestring(bytearray(key, 'utf-8'))
except binascii.Error:
return False
return True


+ 2
- 2
tests/test_octodns_provider_ovh.py View File

@ -428,7 +428,7 @@ class TestOvhProvider(TestCase):
),
call(u'/domain/zone/unit.tests/refresh')]
post_mock.assert_has_calls(wanted_calls)
post_mock.assert_has_calls(wanted_calls, any_order=True)
# Get for delete calls
wanted_get_calls = [
@ -440,7 +440,7 @@ class TestOvhProvider(TestCase):
subDomain=u''),
call(u'/domain/zone/unit.tests/record', fieldType=u'A',
subDomain='fake')]
get_mock.assert_has_calls(wanted_get_calls)
get_mock.assert_has_calls(wanted_get_calls, any_order=True)
# 4 delete calls for update and delete
delete_mock.assert_has_calls(
[call(u'/domain/zone/unit.tests/record/100'),


Loading…
Cancel
Save