Skip to content

Commit

Permalink
make linters happy
Browse files Browse the repository at this point in the history
  • Loading branch information
RafalSiwek committed Dec 19, 2023
1 parent 5834642 commit b94d5be
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
1 change: 0 additions & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ def _on_event(self, event) -> None:
"""Perform all required actions for the Charm."""
try:
self._check_leader()
interfaces = self._get_interfaces()
relational_db_data = self._get_relational_db_data()
envs = self._get_env_vars(relational_db_data)

Expand Down
19 changes: 0 additions & 19 deletions tests/unit/test_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@
"ZENML_LOGGING_VERBOSITY": "DEBUG",
}

INGRESS_DATA = {
"prefix": "/zenml/?(.*)",
"rewrite": "/",
"service": "zenml-server",
"namespace": None,
"port": 8080,
}


class _FakeChangeError(ChangeError):
"""Used to simulate a ChangeError during testing."""
Expand Down Expand Up @@ -284,14 +276,3 @@ def test_on_database_relation_removed(
assert harness.charm.model.unit.status == BlockedStatus(
"Please add relation to the database"
)

@patch(
"charm.KubernetesServicePatch",
lambda x, y, service_name, service_type, refresh_event: None,
)
def test_send_ingress_info_success(self, harness: Harness):
harness.begin()
ingress = MagicMock()
interfaces = {"ingress": ingress}
harness.charm._send_ingress_info(interfaces)
ingress.send_data.assert_called_with(INGRESS_DATA)

0 comments on commit b94d5be

Please sign in to comment.