From c58852ded11ab20aeed5b4115cae874e0d71c1e6 Mon Sep 17 00:00:00 2001 From: Cristiano Nicolai <570894+cristianonicolai@users.noreply.github.com> Date: Thu, 16 Nov 2023 23:57:19 +1000 Subject: [PATCH] Review test assert usage --- src/molecule/test/a_unit/command/test_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/molecule/test/a_unit/command/test_base.py b/src/molecule/test/a_unit/command/test_base.py index 512ba661c1..54877ca49d 100644 --- a/src/molecule/test/a_unit/command/test_base.py +++ b/src/molecule/test/a_unit/command/test_base.py @@ -124,8 +124,8 @@ 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 + _patched_print_matrix.assert_called_once() + _patched_execute_scenario.assert_called_once() def test_execute_cmdline_scenarios_prune(