diff --git a/charms/jupyter-controller/tests/unit/test_operator.py b/charms/jupyter-controller/tests/unit/test_operator.py index 91cb0688..f6c0c350 100644 --- a/charms/jupyter-controller/tests/unit/test_operator.py +++ b/charms/jupyter-controller/tests/unit/test_operator.py @@ -80,19 +80,6 @@ def test_prometheus_data_set(self, harness: Harness, mocker): harness.set_model_name("test_kubeflow") harness.begin() - mock_net_get = mocker.patch("ops.testing._TestingModelBackend.network_get") - - bind_address = "1.1.1.1" - fake_network = { - "bind-addresses": [ - { - "interface-name": "eth0", - "addresses": [{"hostname": "cassandra-tester-0", "value": bind_address}], - } - ] - } - mock_net_get.return_value = fake_network - rel_id = harness.add_relation("metrics-endpoint", "otherapp") harness.add_relation_unit(rel_id, "otherapp/0") harness.update_relation_data(rel_id, "otherapp", {})