mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 23:13:00 +00:00
pyupgrade: run pyupgrade --py36-plus and black on jupyterhub/tests
This commit is contained in:
@@ -205,7 +205,7 @@ def new_username(prefix='testuser'):
|
||||
"""Return a new unique username"""
|
||||
global _username_counter
|
||||
_username_counter += 1
|
||||
return '{}-{}'.format(prefix, _username_counter)
|
||||
return f'{prefix}-{_username_counter}'
|
||||
|
||||
|
||||
@fixture
|
||||
@@ -241,7 +241,7 @@ def new_group_name(prefix='testgroup'):
|
||||
"""Return a new unique group name"""
|
||||
global _groupname_counter
|
||||
_groupname_counter += 1
|
||||
return '{}-{}'.format(prefix, _groupname_counter)
|
||||
return f'{prefix}-{_groupname_counter}'
|
||||
|
||||
|
||||
@fixture
|
||||
|
Reference in New Issue
Block a user