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

f-strings for tests pass 1

This commit is contained in:
Ross McFarland
2021-09-16 16:16:01 -07:00
parent 00f0bf8584
commit 9156bdaea0
7 changed files with 94 additions and 110 deletions

View File

@@ -77,9 +77,9 @@ class TestDigitalOceanProvider(TestCase):
base = 'https://api.digitalocean.com/v2/domains/unit.tests/' \
'records?page='
with open('tests/fixtures/digitalocean-page-1.json') as fh:
mock.get('{}{}'.format(base, 1), text=fh.read())
mock.get(f'{base}1', text=fh.read())
with open('tests/fixtures/digitalocean-page-2.json') as fh:
mock.get('{}{}'.format(base, 2), text=fh.read())
mock.get(f'{base}2', text=fh.read())
zone = Zone('unit.tests.', [])
provider.populate(zone)