Index: tests/engine/single_process.py |
diff --git a/tests/engine/single_process.py b/tests/engine/single_process.py |
index b83cc56678677ff691912f8a2f14ee586fb7f066..695f7b3ff04661a6f7c4e952fc528a6ab5b64e8e 100644 |
--- a/tests/engine/single_process.py |
+++ b/tests/engine/single_process.py |
@@ -4,6 +4,8 @@ |
import unittest |
+from artifacts import reader as artifacts_reader |
+from artifacts import registry as artifacts_registry |
from dfvfs.lib import definitions as dfvfs_definitions |
from dfvfs.path import factory as path_spec_factory |
from dfvfs.resolver import context |
@@ -21,9 +23,15 @@ class SingleProcessEngineTest(shared_test_lib.BaseTestCase): |
# pylint: disable=protected-access |
+ @shared_test_lib.skipUnlessHasTestFile([u'artifacts']) |
@shared_test_lib.skipUnlessHasTestFile([u'ímynd.dd']) |
def testProcessSources(self): |
"""Tests the ProcessSources function.""" |
+ registry = artifacts_registry.ArtifactDefinitionsRegistry() |
+ reader = artifacts_reader.YamlArtifactsReader() |
+ path = shared_test_lib.GetTestFilePath([u'artifacts']) |
+ registry.ReadFromDirectory(reader, path) |
+ |
test_engine = single_process.SingleProcessEngine() |
resolver_context = context.Context() |
session = sessions.Session() |
@@ -35,7 +43,7 @@ class SingleProcessEngineTest(shared_test_lib.BaseTestCase): |
dfvfs_definitions.TYPE_INDICATOR_TSK, location=u'/', |
parent=os_path_spec) |
- test_engine.PreprocessSources([source_path_spec]) |
+ test_engine.PreprocessSources(registry, [source_path_spec]) |
storage_writer = fake_storage.FakeStorageWriter(session) |