From 8d4f13b192afd5d4610eeaf2bbea71c3b6a25964 Mon Sep 17 00:00:00 2001 From: Nejc Habjan Date: Sun, 24 Jul 2022 22:53:01 +0200 Subject: test: always ensure clean config environment --- tests/functional/cli/test_cli_variables.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'tests/functional/cli') 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" -- cgit v1.2.1