summaryrefslogtreecommitdiff
path: root/tests/functional/api/test_gitlab.py
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-11-01 19:22:18 +0100
committerNejc Habjan <hab.nejc@gmail.com>2021-11-02 07:03:33 +0100
commit30fa865cfe145d172b7061cb2af03837b3d1d312 (patch)
tree414f0a060d4dce56310327e07cbdcf7f41f39fc3 /tests/functional/api/test_gitlab.py
parentc7fdad42f68927d79e0d1963ade3324370b9d0e2 (diff)
downloadgitlab-refactor/f-strings.tar.gz
refactor: use f-strings for string formattingrefactor/f-strings
Diffstat (limited to 'tests/functional/api/test_gitlab.py')
-rw-r--r--tests/functional/api/test_gitlab.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/functional/api/test_gitlab.py b/tests/functional/api/test_gitlab.py
index 7a70a56..e79492f 100644
--- a/tests/functional/api/test_gitlab.py
+++ b/tests/functional/api/test_gitlab.py
@@ -166,13 +166,13 @@ def test_rate_limits(gl):
projects = list()
for i in range(0, 20):
- projects.append(gl.projects.create({"name": str(i) + "ok"}))
+ projects.append(gl.projects.create({"name": f"{str(i)}ok"}))
with pytest.raises(gitlab.GitlabCreateError) as e:
for i in range(20, 40):
projects.append(
gl.projects.create(
- {"name": str(i) + "shouldfail"}, obey_rate_limit=False
+ {"name": f"{str(i)}shouldfail"}, obey_rate_limit=False
)
)