summaryrefslogtreecommitdiff
path: root/tests/unit/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/conftest.py')
-rw-r--r--tests/unit/conftest.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py
index 64df051..f58c77a 100644
--- a/tests/unit/conftest.py
+++ b/tests/unit/conftest.py
@@ -9,7 +9,18 @@ def gl():
"http://localhost",
private_token="private_token",
ssl_verify=True,
- api_version=4,
+ api_version="4",
+ )
+
+
+@pytest.fixture
+def gl_retry():
+ return gitlab.Gitlab(
+ "http://localhost",
+ private_token="private_token",
+ ssl_verify=True,
+ api_version="4",
+ retry_transient_errors=True,
)
@@ -17,7 +28,7 @@ def gl():
@pytest.fixture
def gl_trailing():
return gitlab.Gitlab(
- "http://localhost/", private_token="private_token", api_version=4
+ "http://localhost/", private_token="private_token", api_version="4"
)