From 6b892e3dcb18d0f43da6020b08fd4ba891da3670 Mon Sep 17 00:00:00 2001 From: Nejc Habjan Date: Sat, 27 Nov 2021 20:28:15 +0100 Subject: test(cli): improve basic CLI coverage --- gitlab/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gitlab/cli.py') diff --git a/gitlab/cli.py b/gitlab/cli.py index a0134ec..c1a1334 100644 --- a/gitlab/cli.py +++ b/gitlab/cli.py @@ -178,7 +178,7 @@ def _parse_value(v: Any) -> Any: return v -def docs() -> argparse.ArgumentParser: +def docs() -> argparse.ArgumentParser: # pragma: no cover """ Provide a statically generated parser for sphinx only, so we don't need to provide dummy gitlab config for readthedocs. @@ -208,7 +208,7 @@ def main() -> None: sys.exit(0) sys.exit(e) # We only support v4 API at this time - if config.api_version not in ("4",): + if config.api_version not in ("4",): # dead code # pragma: no cover raise ModuleNotFoundError(name=f"gitlab.v{config.api_version}.cli") # Now we build the entire set of subcommands and do the complete parsing @@ -216,7 +216,7 @@ def main() -> None: try: import argcomplete # type: ignore - argcomplete.autocomplete(parser) + argcomplete.autocomplete(parser) # pragma: no cover except Exception: pass args = parser.parse_args() -- cgit v1.2.1