We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbb4e42 commit 3911729Copy full SHA for 3911729
tests/functional/api/test_bulk_imports.py
@@ -1,4 +1,29 @@
1
-def test_bulk_imports(gl, group):
+import time
2
+import pytest
3
+
4
+import gitlab
5
6
7
+@pytest.fixture
8
+def bulk_import_enabled(gl: gitlab.Gitlab):
9
+ settings = gl.settings.get()
10
+ bulk_import_default = settings.bulk_import_enabled
11
12
+ settings.bulk_import_enabled = True
13
+ settings.save()
14
15
+ # todo: why so fussy with feature flag timing?
16
+ time.sleep(5)
17
+ get_settings = gl.settings.get()
18
+ assert get_settings.bulk_import_enabled == True
19
20
+ yield settings
21
22
+ settings.bulk_import_enabled = bulk_import_default
23
24
25
26
+def test_bulk_imports(gl, group, bulk_import_enabled):
27
destination = f"{group.full_path}-import"
28
configuration = {
29
"url": gl.url,
0 commit comments