Skip to content

Commit

Permalink
Use real WatchEvent instance as event in watcher tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindio committed Apr 22, 2024
1 parent 930c58b commit eed341c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/k8s/test_watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def _example_resource(_id, rv, namespace="default"):

def _event(_id, event_type, rv, namespace="default"):
wle = _example_resource(_id, rv, namespace)
return mock.NonCallableMagicMock(type=event_type, object=wle)
return WatchEvent(event_type, wle)


def _assert_event(event, _id, event_type, rv, namespace="default"):
Expand Down

0 comments on commit eed341c

Please sign in to comment.