Skip to content

Commit

Permalink
fix: Remove mocking of private ops class
Browse files Browse the repository at this point in the history
Remove mocking of private ops class according to canonical/operator#1369
and canonical/seldon-core-operator#268
  • Loading branch information
orfeas-k committed Dec 10, 2024
1 parent a4f2be0 commit f5fc454
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/unit/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", {})
Expand Down

0 comments on commit f5fc454

Please sign in to comment.