diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 475c2657f0..32f4065a78 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -29,7 +29,7 @@ jobs: uses: coactions/dynamic-matrix@v1 with: min_python: "3.9" - max_python: "3.11" + max_python: "3.12" other_names: | lint docs diff --git a/pyproject.toml b/pyproject.toml index 594864101f..9ccf5913d5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,6 +29,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python", "Topic :: System :: Systems Administration", "Topic :: Software Development :: Bug Tracking", diff --git a/test/a_unit/command/test_base.py b/test/a_unit/command/test_base.py index aefbec2570..8cd8726cca 100644 --- a/test/a_unit/command/test_base.py +++ b/test/a_unit/command/test_base.py @@ -72,11 +72,6 @@ def _patched_execute_scenario(mocker): return mocker.patch("molecule.command.base.execute_scenario") -@pytest.fixture() -def _patched_print_matrix(mocker): - return mocker.patch("molecule.scenarios.Scenarios.print_matrix") - - @pytest.fixture() def _patched_prune(mocker): return mocker.patch("molecule.scenario.Scenario.prune") @@ -111,12 +106,9 @@ def test_command_setup( def test_execute_cmdline_scenarios( config_instance: config.Config, - _patched_print_matrix, _patched_execute_scenario, ): # Ensure execute_cmdline_scenarios runs normally: - # - scenarios.print_matrix is called, which also indicates Scenarios - # was instantiated correctly # - execute_scenario is called once, indicating the function correctly # loops over Scenarios. scenario_name = None @@ -124,7 +116,6 @@ def test_execute_cmdline_scenarios( command_args = {"destroy": "always", "subcommand": "test"} base.execute_cmdline_scenarios(scenario_name, args, command_args) - assert _patched_print_matrix.called_once_with() assert _patched_execute_scenario.call_count == 1