summaryrefslogtreecommitdiff
path: root/gitlab/tests/test_cli.py
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-05-01 22:47:24 +0200
committerGitHub <noreply@github.com>2021-05-01 22:47:24 +0200
commit562fbbd83c0fabdf9f45d199a2bdd8f61595c4b0 (patch)
tree913060f063953c18dbab825838602b7831f31f54 /gitlab/tests/test_cli.py
parentb563cdc1a6cd585647fc53722081dceb6f7b4466 (diff)
parent6aef2dadf715e601ae9c302be0ad9958345a97f2 (diff)
downloadgitlab-562fbbd83c0fabdf9f45d199a2bdd8f61595c4b0.tar.gz
Merge pull request #1409 from JohnVillalovos/jlvillal/untyped_defs
chore: mypy: Disallow untyped definitions
Diffstat (limited to 'gitlab/tests/test_cli.py')
-rw-r--r--gitlab/tests/test_cli.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/gitlab/tests/test_cli.py b/gitlab/tests/test_cli.py
index 2246369..aed9fc4 100644
--- a/gitlab/tests/test_cli.py
+++ b/gitlab/tests/test_cli.py
@@ -26,7 +26,6 @@ from contextlib import redirect_stderr # noqa: H302
import pytest
from gitlab import cli
-import gitlab.v4.cli
def test_what_to_cls():
@@ -94,14 +93,14 @@ def test_base_parser():
def test_v4_parse_args():
- parser = cli._get_parser(gitlab.v4.cli)
+ parser = cli._get_parser()
args = parser.parse_args(["project", "list"])
assert args.what == "project"
assert args.whaction == "list"
def test_v4_parser():
- parser = cli._get_parser(gitlab.v4.cli)
+ parser = cli._get_parser()
subparsers = next(
action
for action in parser._actions