Skip to content

Commit 2b4be4e

Browse files
committed
Ignore testing on py3.9
1 parent de354f1 commit 2b4be4e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/unit/ctl/test_cli.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_validate_all_groups_have_names():
3232
for group in app.registered_groups:
3333
assert group.name
3434

35-
35+
@requires_python_310
3636
def test_version_command():
3737
result = runner.invoke(app, ["version"])
3838
assert result.exit_code == 0
@@ -51,7 +51,7 @@ def mock_common_responses(httpx_mock: HTTPXMock):
5151
json=json.loads(read_fixture("account_profile.json", "info_cmd")),
5252
)
5353

54-
54+
@requires_python_310
5555
def test_info_command_success(httpx_mock: HTTPXMock):
5656
mock_common_responses(httpx_mock)
5757

@@ -60,17 +60,16 @@ def test_info_command_success(httpx_mock: HTTPXMock):
6060
for expected in ["Connection Status", "Python Version", "SDK Version", "Infrahub Version"]:
6161
assert expected in result.stdout, f"'{expected}' not found in info command output"
6262

63-
63+
@requires_python_310
6464
def test_info_command_failure():
6565
result = runner.invoke(app, ["info"])
6666
assert result.exit_code == 0
6767
assert "Connection Error" in result.stdout
6868

69-
69+
@requires_python_310
7070
def test_info_detail_command_success(httpx_mock: HTTPXMock):
7171
mock_common_responses(httpx_mock)
7272
result = runner.invoke(app, ["info", "--detail"])
73-
print(result.stdout)
7473
assert result.exit_code == 0
7574
for expected in [
7675
"Connection Status",
@@ -81,7 +80,7 @@ def test_info_detail_command_success(httpx_mock: HTTPXMock):
8180
]:
8281
assert expected in result.stdout, f"'{expected}' not found in detailed info command output"
8382

84-
83+
@requires_python_310
8584
def test_info_detail_command_failure():
8685
result = runner.invoke(app, ["info", "--detail"])
8786
assert result.exit_code == 0

0 commit comments

Comments
 (0)