We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parenta3eafab commitc8256a5Copy full SHA for c8256a5
tests/functional/cli/test_cli.py
@@ -3,7 +3,7 @@
3
importpytest
4
importresponses
5
6
-fromgitlabimport__version__
+fromgitlabimport__version__,config
7
8
9
@pytest.fixture
@@ -30,9 +30,13 @@ def test_version(script_runner):
30
31
32
@pytest.mark.script_launch_mode("inprocess")
33
-deftest_defaults_to_gitlab_com(script_runner,resp_get_project):
34
-# Runs in-process to intercept requests to gitlab.com
35
-ret=script_runner.run("gitlab","project","get","--id","1")
+deftest_defaults_to_gitlab_com(script_runner,resp_get_project,monkeypatch):
+withmonkeypatch.context()asm:
+# Ensure we don't pick up any config files that may already exist in the local
36
+# environment.
37
+m.setattr(config,"_DEFAULT_FILES", [])
38
+# Runs in-process to intercept requests to gitlab.com
39
+ret=script_runner.run("gitlab","project","get","--id","1")
40
assertret.success
41
assert"id: 1"inret.stdout
42