summaryrefslogtreecommitdiff
path: root/tests/functional/cli/conftest.py
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-12-01 01:04:53 +0100
committerGitHub <noreply@github.com>2021-12-01 01:04:53 +0100
commit8d76826fa64460e504acc5924f859f8dbc246b42 (patch)
tree083fefada982c795e2415092794db429abb0c184 /tests/functional/cli/conftest.py
parent5a1678f43184bd459132102cc13cf8426fe0449d (diff)
parent86ab04e54ea4175f10053decfad5086cda7aa024 (diff)
downloadgitlab-master.tar.gz
Merge pull request #1723 from python-gitlab/jlvillal/dead_mastermaster
Close-out `master` branch
Diffstat (limited to 'tests/functional/cli/conftest.py')
-rw-r--r--tests/functional/cli/conftest.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/functional/cli/conftest.py b/tests/functional/cli/conftest.py
deleted file mode 100644
index ba94dcb..0000000
--- a/tests/functional/cli/conftest.py
+++ /dev/null
@@ -1,21 +0,0 @@
-import pytest
-
-
-@pytest.fixture
-def gitlab_cli(script_runner, gitlab_config):
- """Wrapper fixture to help make test cases less verbose."""
-
- def _gitlab_cli(subcommands):
- """
- Return a script_runner.run method that takes a default gitlab
- command, and subcommands passed as arguments inside test cases.
- """
- command = ["gitlab", "--config-file", gitlab_config]
-
- for subcommand in subcommands:
- # ensure we get strings (e.g from IDs)
- command.append(str(subcommand))
-
- return script_runner.run(*command)
-
- return _gitlab_cli