Skip to content

Commit

Permalink
Update files
Browse files Browse the repository at this point in the history
  • Loading branch information
raminqaf committed Jul 10, 2024
1 parent d917f1c commit 0e264e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions tests/pipeline/test_clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@
class TestClean:
@pytest.fixture(autouse=True)
def helm_mock(self, mocker: MockerFixture) -> MagicMock:
async_mock = AsyncMock()
return mocker.patch(
"kpops.components.base_components.helm_app.Helm",
return_value=async_mock,
).return_value
"kpops.component_handlers.helm_wrapper.helm.Helm",
return_value=AsyncMock(),
)

# TODO: test using public Pipeline API
# @pytest.fixture()
Expand Down
6 changes: 3 additions & 3 deletions tests/pipeline/test_reset.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
@pytest.mark.usefixtures("mock_env", "load_yaml_file_clear_cache")
class TestReset:
@pytest.fixture(autouse=True)
def mock_helm(self, mocker: MockerFixture) -> MagicMock:
def helm_mock(self, mocker: MockerFixture) -> MagicMock:
return mocker.patch(
"kpops.components.base_components.helm_app.Helm",
"kpops.component_handlers.helm_wrapper.helm.Helm",
return_value=AsyncMock(),
).return_value
)

def test_order(self, mocker: MockerFixture):
producer_app_mock_reset = mocker.patch(
Expand Down

0 comments on commit 0e264e7

Please sign in to comment.