Skip to content

Commit

Permalink
fix-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NitinAgg committed Aug 16, 2022
1 parent eee1350 commit 42106ea
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tests/commands/test_apply.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 42106ea

Please # to comment.