Changeset View
Changeset View
Standalone View
Standalone View
swh/indexer/tests/test_utils.py
Show First 20 Lines • Show All 235 Lines • ▼ Show 20 Lines | |||||
OBJ_STORAGE_DATA = { | OBJ_STORAGE_DATA = { | ||||
'01c9379dfc33803963d07c1ccc748d3fe4c96bb5': b'this is some text', | '01c9379dfc33803963d07c1ccc748d3fe4c96bb5': b'this is some text', | ||||
'688a5ef812c53907562fe379d4b3851e69c7cb15': b'another text', | '688a5ef812c53907562fe379d4b3851e69c7cb15': b'another text', | ||||
'8986af901dd2043044ce8f0d8fc039153641cf17': b'yet another text', | '8986af901dd2043044ce8f0d8fc039153641cf17': b'yet another text', | ||||
'02fb2c89e14f7fab46701478c83779c7beb7b069': b""" | '02fb2c89e14f7fab46701478c83779c7beb7b069': b""" | ||||
import unittest | import unittest | ||||
import logging | import logging | ||||
from swh.indexer.mimetype import ContentMimetypeIndexer | from swh.indexer.mimetype import MimetypeIndexer | ||||
from swh.indexer.tests.test_utils import MockObjStorage | from swh.indexer.tests.test_utils import MockObjStorage | ||||
class MockStorage(): | class MockStorage(): | ||||
def content_mimetype_add(self, mimetypes): | def content_mimetype_add(self, mimetypes): | ||||
self.state = mimetypes | self.state = mimetypes | ||||
self.conflict_update = conflict_update | self.conflict_update = conflict_update | ||||
def indexer_configuration_add(self, tools): | def indexer_configuration_add(self, tools): | ||||
▲ Show 20 Lines • Show All 554 Lines • Show Last 20 Lines |