summaryrefslogtreecommitdiff
path: root/tests/functional/cli
diff options
context:
space:
mode:
authorNejc Habjan <nejc.habjan@siemens.com>2022-07-24 22:53:01 +0200
committerJohn Villalovos <john@sodarock.com>2022-07-26 16:03:49 -0700
commit8d4f13b192afd5d4610eeaf2bbea71c3b6a25964 (patch)
tree933ec4a69edd19469d8d51e0f78c412aa5e43472 /tests/functional/cli
parent4b798fc2fdc44b73790c493c329147013464de14 (diff)
downloadgitlab-8d4f13b192afd5d4610eeaf2bbea71c3b6a25964.tar.gz
test: always ensure clean config environment
Diffstat (limited to 'tests/functional/cli')
-rw-r--r--tests/functional/cli/test_cli_variables.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/functional/cli/test_cli_variables.py b/tests/functional/cli/test_cli_variables.py
index 5195f16..3eb8e03 100644
--- a/tests/functional/cli/test_cli_variables.py
+++ b/tests/functional/cli/test_cli_variables.py
@@ -3,7 +3,6 @@ import copy
import pytest
import responses
-from gitlab import config
from gitlab.const import DEFAULT_URL
@@ -37,10 +36,7 @@ def test_list_project_variables_with_path(gitlab_cli, project):
@pytest.mark.script_launch_mode("inprocess")
@responses.activate
-def test_list_project_variables_with_path_url_check(
- monkeypatch, script_runner, resp_get_project
-):
- monkeypatch.setattr(config, "_DEFAULT_FILES", [])
+def test_list_project_variables_with_path_url_check(script_runner, resp_get_project):
resp_get_project_variables = copy.deepcopy(resp_get_project)
resp_get_project_variables.update(
url=f"{DEFAULT_URL}/api/v4/projects/project%2Fwith%2Fa%2Fnamespace/variables"