Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.indexer.tests.storage.test_storage::test_types
Failed

TEST RESULT

Run At
Oct 15 2020, 3:49 PM
Details
swh_indexer_storage = <swh.indexer.storage.IndexerStorage object at 0x7f04e09a8ef0> def test_types(swh_indexer_storage) -> None: """Checks all methods of StorageInterface 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("_", (IndexerStorageInterface,), {})() assert "content_mimetype_add" in dir(interface) missing_methods = [] for meth_name in dir(interface): if meth_name.startswith("_"): continue interface_meth = getattr(interface, meth_name) try: concrete_meth = getattr(swh_indexer_storage, meth_name) except AttributeError: missing_methods.append(meth_name) continue expected_signature = inspect.signature(interface_meth) actual_signature = inspect.signature(concrete_meth) > assert expected_signature == actual_signature, meth_name E AssertionError: content_ctags_add E assert <Signature (c...ict[str, int]> == <Signature (c...ct[str, int]'> E +<Signature (ctags: List[swh.indexer.storage.model.ContentCtagsRow], conflict_update: bool = False) -> Dict[str, int]> E -<Signature (ctags: 'List[ContentCtagsRow]', conflict_update: 'bool' = False) -> 'Dict[str, int]'> .tox/py3/lib/python3.7/site-packages/swh/indexer/tests/storage/test_storage.py:109: AssertionError