summaryrefslogtreecommitdiff
path: root/test/test_cerbero_packages_package.py
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2012-04-24 15:33:40 +0200
committerAndoni Morales Alastruey <ylatuya@gmail.com>2012-04-24 15:35:54 +0200
commit70ff524c0b6ea14a24ee8ff1e0bc33a2ad01bd81 (patch)
treec264a47ad307796f1fe68db7dcc8d6735c61e44d /test/test_cerbero_packages_package.py
parenta512f592555944a24c656c376f6d416c366ea2ca (diff)
tests: Fix tests
Diffstat (limited to 'test/test_cerbero_packages_package.py')
-rw-r--r--test/test_cerbero_packages_package.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/test/test_cerbero_packages_package.py b/test/test_cerbero_packages_package.py
index 5b2197c7..9fb15555 100644
--- a/test/test_cerbero_packages_package.py
+++ b/test/test_cerbero_packages_package.py
@@ -41,8 +41,10 @@ class PackageTest(unittest.TestCase):
self.tmp = tempfile.mkdtemp()
win32config = Config(self.tmp, Platform.WINDOWS)
linuxconfig = Config(self.tmp, Platform.LINUX)
- self.win32package = Package1(win32config, create_cookbook(win32config))
- self.linuxpackage = Package1(linuxconfig, create_cookbook(linuxconfig))
+ self.win32package = Package1(win32config, create_store(win32config),
+ create_cookbook(win32config))
+ self.linuxpackage = Package1(linuxconfig, create_store(linuxconfig),
+ create_cookbook(linuxconfig))
def tearDown(self):
shutil.rmtree(self.tmp)
@@ -62,10 +64,11 @@ class PackageTest(unittest.TestCase):
self.assertEquals(self.win32package._recipes_files['recipe5'], ['libs'])
def testListRecipesDeps(self):
+ print self.win32package.recipes_dependencies()
self.assertEquals(self.win32package.recipes_dependencies(),
- ['recipe1', 'recipe5'])
+ ['recipe1', 'recipe5', 'recipe2'])
self.assertEquals(self.linuxpackage.recipes_dependencies(),
- ['recipe1'])
+ ['recipe1', 'recipe2'])
def testFilesList(self):
add_files(self.tmp)
@@ -101,11 +104,11 @@ class PackageTest(unittest.TestCase):
def testSystemDependencies(self):
config = Config(self.tmp, Platform.LINUX)
config.target_distro = Distro.DEBIAN
- package = Package4(config, None)
+ package = Package4(config, None, None)
self.assertEquals(package.get_sys_deps(), ['python'])
config.target_distro = Distro.REDHAT
config.target_distro_version = DistroVersion.FEDORA_16
- package = Package4(config, None)
+ package = Package4(config, None, None)
self.assertEquals(package.get_sys_deps(), ['python27'])