Skip to content

Commit

Permalink
Clean up monkeypatch
Browse files Browse the repository at this point in the history
  • Loading branch information
smokestacklightnin committed Dec 18, 2024
1 parent 3c032bb commit a36df15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tests_unit/test_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ class MonkeypatchApiResponse:
monkeypatch.setattr(
_ApiextensionsV1Api,
"read_custom_resource_definition",
lambda x, *args, **kwargs: True,
lambda *args, **kwargs: True,
)
monkeypatch.setattr(
_ApiextensionsV1Api,
"patch_custom_resource_definition",
lambda x, *args, **kwargs: True,
lambda *args, **kwargs: True,
)
monkeypatch.setattr(
_AppsV1Api,
Expand Down

0 comments on commit a36df15

Please sign in to comment.