summaryrefslogtreecommitdiff
path: root/tests/unit/conftest.py
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-08-31 00:30:06 +0200
committerGitHub <noreply@github.com>2021-08-31 00:30:06 +0200
commitd98d948f997e973a42a8a21dfdbba0b435a602df (patch)
treee16d5e53efb182475c96a32ac1f2686a43ee9c19 /tests/unit/conftest.py
parenta00ec87bdbadccaf3e3700a48cbb797fd2750107 (diff)
parent3b1d3a41da7e7228f3a465d06902db8af564153e (diff)
downloadgitlab-d98d948f997e973a42a8a21dfdbba0b435a602df.tar.gz
Merge pull request #1565 from javatarz/master
feat: allow global retry_transient_errors
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"
)