From ef45cd5ce063ce4aace83bbba1091153dd6ef32e Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 19 Dec 2012 21:14:07 +0100 Subject: [PATCH] fix removal of context alias in config_install Signed-off-by: Nico Schottelius --- cdist/test/autorequire/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cdist/test/autorequire/__init__.py b/cdist/test/autorequire/__init__.py index 2a647954..330680df 100644 --- a/cdist/test/autorequire/__init__.py +++ b/cdist/test/autorequire/__init__.py @@ -65,10 +65,10 @@ class AutorequireTestCase(test.CdistTestCase): shutil.rmtree(self.temp_dir) def test_implicit_dependencies(self): - self.context.initial_manifest = os.path.join(self.config.local.manifest_path, 'implicit_dependencies') + self.context.initial_manifest = os.path.join(self.context.local.manifest_path, 'implicit_dependencies') self.config.stage_prepare() - objects = core.CdistObject.list_objects(self.config.local.object_path, self.config.local.type_path) + objects = core.CdistObject.list_objects(self.context.local.object_path, self.context.local.type_path) dependency_resolver = resolver.DependencyResolver(objects) expected_dependencies = [ dependency_resolver.objects['__package_special/b'], @@ -79,7 +79,7 @@ class AutorequireTestCase(test.CdistTestCase): self.assertEqual(resolved_dependencies, expected_dependencies) def test_circular_dependency(self): - self.context.initial_manifest = os.path.join(self.config.local.manifest_path, 'circular_dependency') + self.context.initial_manifest = os.path.join(self.context.local.manifest_path, 'circular_dependency') self.config.stage_prepare() # raises CircularDependecyError self.config.stage_run()