Browse Source

GoogleCloud python3

pull/384/head
Ross McFarland 6 years ago
parent
commit
0078198500
No known key found for this signature in database GPG Key ID: 61C10C4FC8FE4A89
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      tests/test_octodns_provider_googlecloud.py

+ 6
- 1
tests/test_octodns_provider_googlecloud.py View File

@ -193,9 +193,14 @@ class DummyIterator:
def __iter__(self):
return self
# python2
def next(self):
return next(self.iterable)
# python3
def __next__(self):
return next(self.iterable)
class TestGoogleCloudProvider(TestCase):
@patch('octodns.provider.googlecloud.dns')
@ -247,7 +252,7 @@ class TestGoogleCloudProvider(TestCase):
return_values_for_status = iter(
["pending"] * 11 + ['done', 'done'])
type(status_mock).status = PropertyMock(
side_effect=return_values_for_status.next)
side_effect=lambda: next(return_values_for_status))
gcloud_zone_mock.changes = Mock(return_value=status_mock)
provider = self._get_provider()


Loading…
Cancel
Save