fix removal of context alias in config_install

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
Nico Schottelius 2012-12-19 21:14:07 +01:00
parent 2732a4ba5c
commit ef45cd5ce0

View file

@ -65,10 +65,10 @@ class AutorequireTestCase(test.CdistTestCase):
shutil.rmtree(self.temp_dir) shutil.rmtree(self.temp_dir)
def test_implicit_dependencies(self): 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() 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) dependency_resolver = resolver.DependencyResolver(objects)
expected_dependencies = [ expected_dependencies = [
dependency_resolver.objects['__package_special/b'], dependency_resolver.objects['__package_special/b'],
@ -79,7 +79,7 @@ class AutorequireTestCase(test.CdistTestCase):
self.assertEqual(resolved_dependencies, expected_dependencies) self.assertEqual(resolved_dependencies, expected_dependencies)
def test_circular_dependency(self): 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() self.config.stage_prepare()
# raises CircularDependecyError # raises CircularDependecyError
self.config.stage_run() self.config.stage_run()