diff --git a/tests/unit/test_charm.py b/tests/unit/test_charm.py index d4f3a0b..e6ef7b0 100644 --- a/tests/unit/test_charm.py +++ b/tests/unit/test_charm.py @@ -390,19 +390,6 @@ def test_prometheus_data_set(harness, mocker): harness.set_model_name("kubeflow") harness.begin() - mock_net_get = mocker.patch("ops.testing._TestingModelBackend.network_get") - mocker.patch("ops.testing._TestingPebbleClient.list_files") - - 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", {})