From 9c44ada3b5c84395bc46235b4098b87f6a7c2eda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Paduszy=C5=84ski?= Date: Wed, 28 May 2025 19:49:25 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=E2=9C=85=20Fix=20exit=20code=202=20in=20`g?= =?UTF-8?q?itmojis`=20CLI=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_cli.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index c00fc99..f40176e 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -8,15 +8,14 @@ from gitmojis.cli import get_commands, gitmojis_cli from gitmojis.model import Guide - def test_gitmojis_cli_runs_as_entry_point(): - result = subprocess.run(["gitmojis"]) + result = subprocess.run(["gitmojis", "--version"]) assert result.returncode == 0 def test_gitmojis_cli_runs_as_python_script(): - result = subprocess.run([sys.executable, "-m", "gitmojis"]) + result = subprocess.run([sys.executable, "-m", "gitmojis", "--version"]) assert result.returncode == 0 From 5c9a42863a9537bfbae0336eabb734605d007b51 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 28 May 2025 17:53:21 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=9A=A8=20[pre-commit.ci]=20Fix=20erro?= =?UTF-8?q?rs=20raised=20by=20`pre-commit`=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_cli.py b/tests/test_cli.py index f40176e..a59c9dc 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -8,6 +8,7 @@ from gitmojis.cli import get_commands, gitmojis_cli from gitmojis.model import Guide + def test_gitmojis_cli_runs_as_entry_point(): result = subprocess.run(["gitmojis", "--version"])