Skip to content

Commit

Permalink
Avoid redefining builtins
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindio committed Jan 13, 2023
1 parent 4052f6d commit 95ae77e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/k8s/test_client.py
Expand Up @@ -301,10 +301,10 @@ def test_watch_list_payload_invalid_object(self, get):
assert items == expected


def _create_watchevent(type, object):
def _create_watchevent(event_type, event_object):
"""factory function for WatchEvent to make it easier to create test data from actual objects, as the constructor
takes a dict (unmarshaled json)"""
return WatchEvent({"type": type, "object": object.as_dict()}, object.__class__)
return WatchEvent({"type": event_type, "object": event_object.as_dict()}, event_object.__class__)


def _absolute_url(url):
Expand Down

0 comments on commit 95ae77e

Please sign in to comment.