Skip to content

Commit

Permalink
remove KubernetesServicePatch from scenario tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lucabello committed Apr 15, 2024
1 parent f1fbba7 commit d85ecc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions tests/scenario/test_setup_statuses.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ def patch_all(substrate, mock_cfg_path):
grafana_agent.CONFIG_PATH = mock_cfg_path
with patch("subprocess.run", _subp_run_mock):
yield

else:
with patch("charm.KubernetesServicePatch", lambda x, y: None):
yield
yield


def test_install(charm_type, substrate, vroot):
Expand Down
5 changes: 1 addition & 4 deletions tests/scenario/test_start_statuses.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ def patch_all(substrate, placeholder_cfg_path):
"grafana_agent.CONFIG_PATH", placeholder_cfg_path
):
yield

else:
with patch("charm.KubernetesServicePatch", lambda x, y: None):
yield
yield


@pytest.fixture
Expand Down

0 comments on commit d85ecc5

Please sign in to comment.