Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.indexer.tests.storage.test_in_memory.TestIndexerStorageContentCTags::test_content_ctags_add__add_new_ctags_added
Failed

TEST RESULT

Run At
Sep 29 2020, 4:23 PM
Details
swh_indexer_storage = <swh.indexer.storage.in_memory.IndexerStorage object at 0x7fe313177550> @pytest.fixture def swh_indexer_storage_with_data(swh_indexer_storage): data = DataObj() tools = { tool["tool_name"]: { "id": tool["id"], "name": tool["tool_name"], "version": tool["tool_version"], "configuration": tool["tool_configuration"], } for tool in swh_indexer_storage.indexer_configuration_add(TOOLS) } data.tools = tools data.sha1_1 = hash_to_bytes("34973274ccef6ab4dfaaf86599792fa9c3fe4689") data.sha1_2 = hash_to_bytes("61c2b3a30496d329e21af70dd2d7e097046d07b7") data.revision_id_1 = hash_to_bytes("7026b7c1a2af56521e951c01ed20f255fa054238") data.revision_id_2 = hash_to_bytes("7026b7c1a2af56521e9587659012345678904321") data.revision_id_3 = hash_to_bytes("7026b7c1a2af56521e9587659012345678904320") data.origin_url_1 = "file:///dev/0/zero" # 44434341 data.origin_url_2 = "file:///dev/1/one" # 44434342 data.origin_url_3 = "file:///dev/2/two" # 54974445 data.mimetypes = [ {**mimetype_obj, "indexer_configuration_id": tools["file"]["id"]} for mimetype_obj in MIMETYPE_OBJECTS ] > swh_indexer_storage.content_mimetype_add(data.mimetypes) .tox/py3/lib/python3.7/site-packages/swh/indexer/tests/storage/conftest.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/indexer/storage/in_memory.py:289: in content_mimetype_add added = self._mimetypes.add(mimetypes, conflict_update) .tox/py3/lib/python3.7/site-packages/swh/indexer/storage/in_memory.py:177: in add self._journal_writer.write_additions(self._obj_type, data) .tox/py3/lib/python3.7/site-packages/swh/indexer/storage/writer.py:49: in write_additions self.journal.write_addition(obj_type, entry) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.journal.writer.inmemory.InMemoryJournalWriter object at 0x7fe3131775f8> object_type = 'mimetype' object_ = {'encoding': b'iso8859-1', 'id': b'\x91\xcc\x160\xd3gK\xdaz\xa0\xe3\xfb\x14k\xc7\xd2\xcfN\x83B', 'mimetype': b'applica...798621, 'tool_configuration': {'command_line': 'file --mime <filepath>'}, 'tool_name': 'file', 'tool_version': '5.22'}} privileged = False def write_addition( self, object_type: str, object_: ModelObject, privileged: bool = False ) -> None: > assert isinstance(object_, BaseModel) E AssertionError: assert False E + where False = isinstance({'encoding': b'iso8859-1', 'id': b'\x91\xcc\x160\xd3gK\xdaz\xa0\xe3\xfb\x14k\xc7\xd2\xcfN\x83B', 'mimetype': b'applica...798621, 'tool_configuration': {'command_line': 'file --mime <filepath>'}, 'tool_name': 'file', 'tool_version': '5.22'}}, BaseModel) .tox/py3/lib/python3.7/site-packages/swh/journal/writer/inmemory.py:27: AssertionError