Skip to content

Commit

Permalink
Remove outdated mocking.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyandrewmeyer committed Sep 12, 2024
1 parent 106e21b commit 58697a5
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tests/unit/test_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,19 +112,8 @@ 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")
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", {})
Expand Down

0 comments on commit 58697a5

Please sign in to comment.