diff --git a/tests/unit/python/plugins/lookup/test_email.py b/tests/unit/python/plugins/lookup/test_email.py index 9845c2998d..a1191449af 100644 --- a/tests/unit/python/plugins/lookup/test_email.py +++ b/tests/unit/python/plugins/lookup/test_email.py @@ -807,6 +807,13 @@ class _RawGetHostvars(dict): super().__init__(templated) self._raw = raw + def __eq__(self, other: object) -> bool: + return ( + isinstance(other, _RawGetHostvars) + and dict.__eq__(self, other) + and self._raw == other._raw + ) + def raw_get(self, host: str) -> dict: return self._raw[host] diff --git a/tests/unit/python/roles/web-app-funkwhale/files/same_origin/test_urls.py b/tests/unit/python/roles/web-app-funkwhale/files/same_origin/test_urls.py index 952293b096..7a5bfd4648 100644 --- a/tests/unit/python/roles/web-app-funkwhale/files/same_origin/test_urls.py +++ b/tests/unit/python/roles/web-app-funkwhale/files/same_origin/test_urls.py @@ -34,6 +34,13 @@ class _HttpResponse(dict): super().__init__() self.content_type = content_type + def __eq__(self, other: object) -> bool: + return ( + isinstance(other, _HttpResponse) + and dict.__eq__(self, other) + and self.content_type == other.content_type + ) + def funkwhale_get_file_path(audio_file) -> bytes: """