|
1 | 1 | import os |
2 | | -import sys |
3 | 2 | from unittest.mock import ANY |
4 | 3 |
|
5 | 4 | import pytest |
6 | 5 | from pytest_mock import MockFixture |
7 | 6 |
|
8 | | -from commitizen import cli, cmd, commands |
| 7 | +from commitizen import cmd, commands |
9 | 8 | from commitizen.cz.exceptions import CzException |
10 | 9 | from commitizen.cz.utils import get_backup_file_path |
11 | 10 | from commitizen.exceptions import ( |
|
19 | 18 | NotAllowed, |
20 | 19 | NothingToCommitError, |
21 | 20 | ) |
22 | | -from tests.utils import skip_below_py_3_13 |
23 | 21 |
|
24 | 22 |
|
25 | 23 | @pytest.fixture |
@@ -512,19 +510,6 @@ def test_manual_edit(editor, config, mocker: MockFixture, tmp_path): |
512 | 510 | assert edited_message == test_message.strip() |
513 | 511 |
|
514 | 512 |
|
515 | | -@skip_below_py_3_13 |
516 | | -def test_commit_command_shows_description_when_use_help_option( |
517 | | - mocker: MockFixture, capsys, file_regression |
518 | | -): |
519 | | - testargs = ["cz", "commit", "--help"] |
520 | | - mocker.patch.object(sys, "argv", testargs) |
521 | | - with pytest.raises(SystemExit): |
522 | | - cli.main() |
523 | | - |
524 | | - out, _ = capsys.readouterr() |
525 | | - file_regression.check(out, extension=".txt") |
526 | | - |
527 | | - |
528 | 513 | @pytest.mark.usefixtures("staging_is_clean") |
529 | 514 | @pytest.mark.parametrize( |
530 | 515 | "out", ["no changes added to commit", "nothing added to commit"] |
|
0 commit comments