Beispiel #1
0
 def setUp(self):
     self.tmp = tempfile.mkdtemp()
     win32config = Config(self.tmp, Platform.WINDOWS)
     linuxconfig = Config(self.tmp, Platform.LINUX)
     self.win32package = Package1(win32config, create_store(win32config),
             create_cookbook(win32config))
     self.linuxpackage = Package1(linuxconfig, create_store(linuxconfig),
             create_cookbook(linuxconfig))
 def setUp(self):
     self.config = DummyConfig()
     cb =  create_cookbook(self.config)
     store =  create_store(self.config)
     cb.add_recipe(Recipe1(self.config))
     self.package = Package(self.config, store, cb)
     self.mergemodule = MergeModule(self.config,
             self.package.files_list(), self.package)
Beispiel #3
0
 def setUp(self):
     self.config = DummyConfig()
     cb = create_cookbook(self.config)
     store = create_store(self.config)
     cb.add_recipe(Recipe1(self.config))
     self.package = Package(self.config, store, cb)
     self.mergemodule = MergeModule(self.config, self.package.files_list(),
                                    self.package)
def create_store(config):
    cookbook = create_cookbook(config)
    store = PackagesStore(config, False)

    for klass in [Package1, Package2, Package3, Package4, App]:
        package = klass(config, store, cookbook)
        package.__file__ = 'test/test_packages_common.py'
        store.add_package(package)
    for klass in [MetaPackage]:
        package = klass(config, store)
        package.__file__ = 'test/test_packages_common.py'
        store.add_package(package)
    return store
Beispiel #5
0
 def setUp(self):
     self.tmp = tempfile.mkdtemp()
     config = Config(self.tmp, Platform.LINUX)
     self.store = create_store(config)
     self.cookbook = create_cookbook(config)
     self.app = App(config, self.store, self.cookbook)