pyupgrade: run pyupgrade --py36-plus and black on jupyterhub/tests

This commit is contained in:
Erik Sundell
2021-08-26 15:59:13 +02:00
parent 2c62c4f7ef
commit c8c7418ed2
12 changed files with 67 additions and 68 deletions

View File

@@ -101,7 +101,7 @@ async def test_external_proxy(request):
print(app.base_url, user_path)
host = ''
if app.subdomain_host:
host = '%s.%s' % (name, urlparse(app.subdomain_host).hostname)
host = f'{name}.{urlparse(app.subdomain_host).hostname}'
user_spec = host + user_path
assert sorted(routes.keys()) == [app.hub.routespec, user_spec]
@@ -148,7 +148,7 @@ async def test_external_proxy(request):
await wait_for_proxy()
# tell the hub where the new proxy is
new_api_url = 'http://{}:{}'.format(proxy_ip, proxy_port)
new_api_url = f'http://{proxy_ip}:{proxy_port}'
r = await api_request(
app,
'proxy',