From 8058cb1c0441c4cbb3546f66de08a06c521978ee Mon Sep 17 00:00:00 2001 From: sdc50 Date: Tue, 26 Sep 2023 12:41:21 -0600 Subject: [PATCH] fix tests --- tests/unit_tests/test_tethys_cli/test_gen_commands.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/unit_tests/test_tethys_cli/test_gen_commands.py b/tests/unit_tests/test_tethys_cli/test_gen_commands.py index ab1ebe2d9..9697aead5 100644 --- a/tests/unit_tests/test_tethys_cli/test_gen_commands.py +++ b/tests/unit_tests/test_tethys_cli/test_gen_commands.py @@ -452,7 +452,7 @@ def test_generate_command_metayaml( _, mock_os_path_join, ): - mock_args = mock.MagicMock() + mock_args = mock.MagicMock(micro=False) mock_args.type = GEN_META_YAML_OPTION mock_args.directory = None mock_args.pin_level = "minor" @@ -478,6 +478,7 @@ def test_generate_command_metayaml( render_context = mock_Template().render.call_args.args[0] expected_context = { + "package_name": "tethys-platform", "run_requirements": ["foo=1.2.*", "bar=4.5", "goo=7.8"], "tethys_version": mock.ANY, } @@ -492,7 +493,7 @@ def test_generate_command_metayaml( def test_gen_meta_yaml_overriding_dependencies( self, _, mock_load, mock_dvfce, mock_write_info ): - mock_args = mock.MagicMock() + mock_args = mock.MagicMock(micro=False) mock_args.type = GEN_META_YAML_OPTION mock_args.directory = None mock_args.pin_level = "minor" @@ -514,6 +515,7 @@ def test_gen_meta_yaml_overriding_dependencies( mock_dvfce.assert_called_with("foo", level="minor") expected_context = { + "package_name": "tethys-platform", "run_requirements": [ mock_dvfce(), "foo=1.2.3",