diff --git a/tests/commands/test_example_command.py b/tests/commands/test_example_command.py index 0521679f1..bc9c708ea 100644 --- a/tests/commands/test_example_command.py +++ b/tests/commands/test_example_command.py @@ -4,7 +4,6 @@ from pytest_mock import MockerFixture from commitizen import cli, commands -from tests.utils import skip_below_py_3_10 def test_example(config, mocker: MockerFixture): @@ -13,7 +12,6 @@ def test_example(config, mocker: MockerFixture): write_mock.assert_called_once() -@skip_below_py_3_10 def test_example_command_shows_description_when_use_help_option( mocker: MockerFixture, capsys, file_regression ): diff --git a/tests/commands/test_info_command.py b/tests/commands/test_info_command.py index 2bd155367..ac41e69d5 100644 --- a/tests/commands/test_info_command.py +++ b/tests/commands/test_info_command.py @@ -4,7 +4,6 @@ from pytest_mock import MockerFixture from commitizen import cli, commands -from tests.utils import skip_below_py_3_10 def test_info(config, mocker: MockerFixture): @@ -13,7 +12,6 @@ def test_info(config, mocker: MockerFixture): write_mock.assert_called_once() -@skip_below_py_3_10 def test_info_command_shows_description_when_use_help_option( mocker: MockerFixture, capsys, file_regression ): diff --git a/tests/commands/test_init_command.py b/tests/commands/test_init_command.py index 54fa271fd..89af51829 100644 --- a/tests/commands/test_init_command.py +++ b/tests/commands/test_init_command.py @@ -12,7 +12,6 @@ from commitizen import cli, cmd, commands from commitizen.__version__ import __version__ from commitizen.exceptions import InitFailedError, NoAnswersError -from tests.utils import skip_below_py_3_10 if TYPE_CHECKING: from pytest_mock import MockFixture @@ -275,7 +274,6 @@ def test_empty_input_returns_default(self, mocker: MockFixture, config: BaseConf assert result == "$version" # This is the default format from DEFAULT_SETTINGS -@skip_below_py_3_10 def test_init_command_shows_description_when_use_help_option( mocker: MockFixture, capsys, file_regression ): diff --git a/tests/commands/test_ls_command.py b/tests/commands/test_ls_command.py index 7225d2a85..f3ddbcc63 100644 --- a/tests/commands/test_ls_command.py +++ b/tests/commands/test_ls_command.py @@ -4,7 +4,6 @@ from pytest_mock import MockerFixture from commitizen import cli, commands -from tests.utils import skip_below_py_3_10 def test_list_cz(config, mocker: MockerFixture): @@ -13,7 +12,6 @@ def test_list_cz(config, mocker: MockerFixture): write_mock.assert_called_once() -@skip_below_py_3_10 def test_ls_command_shows_description_when_use_help_option( mocker: MockerFixture, capsys, file_regression ): diff --git a/tests/commands/test_schema_command.py b/tests/commands/test_schema_command.py index 5e571721c..00aac2d63 100644 --- a/tests/commands/test_schema_command.py +++ b/tests/commands/test_schema_command.py @@ -4,7 +4,6 @@ from pytest_mock import MockerFixture from commitizen import cli, commands -from tests.utils import skip_below_py_3_10 def test_schema(config, mocker: MockerFixture): @@ -13,7 +12,6 @@ def test_schema(config, mocker: MockerFixture): write_mock.assert_called_once() -@skip_below_py_3_10 def test_schema_command_shows_description_when_use_help_option( mocker: MockerFixture, capsys, file_regression ): diff --git a/tests/commands/test_version_command.py b/tests/commands/test_version_command.py index a5faf4e16..2fd944032 100644 --- a/tests/commands/test_version_command.py +++ b/tests/commands/test_version_command.py @@ -8,7 +8,6 @@ from commitizen import cli, commands from commitizen.__version__ import __version__ from commitizen.config.base_config import BaseConfig -from tests.utils import skip_below_py_3_10 def test_version_for_showing_project_version_error(config, capsys): @@ -105,7 +104,6 @@ def test_version_use_version_provider( mock.set_version.assert_not_called() -@skip_below_py_3_10 def test_version_command_shows_description_when_use_help_option( mocker: MockerFixture, capsys, file_regression ): diff --git a/tests/utils.py b/tests/utils.py index bea7f20a1..124997b7f 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -14,11 +14,6 @@ if TYPE_CHECKING: from commitizen.version_schemes import Increment, Prerelease -skip_below_py_3_10 = pytest.mark.skipif( - sys.version_info < (3, 10), - reason="The output message of argparse is different between Python 3.10 and lower than Python 3.10", -) - skip_below_py_3_13 = pytest.mark.skipif( sys.version_info < (3, 13), reason="The output message of argparse is different between Python 3.13 and lower than Python 3.13",