From 42106ead94f9e3bbae4273ab7c3af73f21d96114 Mon Sep 17 00:00:00 2001 From: Nitin Aggarwal Date: Tue, 16 Aug 2022 11:40:23 -0700 Subject: [PATCH] fix-tests --- tests/commands/test_apply.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tests/commands/test_apply.py b/tests/commands/test_apply.py index 02abb72d3..23e9a6868 100644 --- a/tests/commands/test_apply.py +++ b/tests/commands/test_apply.py @@ -213,13 +213,6 @@ def test_verify_semver_all_good(mocker: MockFixture, mocked_layer: Any) -> None: _verify_semver("0.1.0", "0.2.0", mocked_layer) -def test_verify_semver_older_version(mocker: MockFixture, mocked_layer: Any) -> None: - mock_upgrade = mocker.patch("opta.commands.apply._upgrade") - with pytest.raises(SystemExit): - _verify_semver("0.2.0", "0.1.0", mocked_layer, True) - mock_upgrade.assert_called_once() - - def test_verify_semver_upgrade_warning(mocker: MockFixture, mocked_layer: Any) -> None: mocked_logger = mocker.patch("opta.commands.apply.logger") mocked_click = mocker.patch("opta.commands.apply.click")