Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.objstorage.tests.test_objstorage_azure.TestAzureCloudObjStorageBz2::test_types
Failed

TEST RESULT

Run At
Jun 22 2022, 5:24 PM
Details
self = <swh.objstorage.tests.test_objstorage_azure.TestAzureCloudObjStorageBz2 testMethod=test_types> def test_types(self): """Checks all methods of ObjStorageInterface are implemented by this backend, and that they have the same signature.""" # Create an instance of the protocol (which cannot be instantiated # directly, so this creates a subclass, then instantiates it) interface = type("_", (ObjStorageInterface,), {})() assert "get_batch" in dir(interface) missing_methods = [] for meth_name in dir(interface): if meth_name.startswith("_") and meth_name not in ( "__iter__", "__contains__", ): continue interface_meth = getattr(interface, meth_name) concrete_meth = getattr(self.storage, meth_name) expected_signature = inspect.signature(interface_meth) actual_signature = inspect.signature(concrete_meth) > assert expected_signature == actual_signature, meth_name E AssertionError: __contains__ E assert <Signature (obj_id: Union[bytes, swh.objstorage.interface.CompositeObjId]) -> bool> == <Signature (obj_id)> .tox/py3/lib/python3.7/site-packages/swh/objstorage/tests/objstorage_testing.py:37: AssertionError