comparison test/test_readconfig.py @ 389:a690fc689f2f treepkg-status

added treepkg_dir andd tracks_dir attributes to PackageGroup
author Bjoern Ricks <bricks@intevation.de>
date Thu, 08 Jul 2010 15:59:52 +0000
parents c1f3be727f9d
children f9cd55aea87d
comparison
equal deleted inserted replaced
388:1af04bfbb1d0 389:a690fc689f2f
81 def test_readconfig(self): 81 def test_readconfig(self):
82 config_file = os.path.join(self.directory, "treepkg.cfg") 82 config_file = os.path.join(self.directory, "treepkg.cfg")
83 treepkg_opts, packager_opts = read_config(config_file) 83 treepkg_opts, packager_opts = read_config(config_file)
84 self.assertEquals(treepkg_opts, 84 self.assertEquals(treepkg_opts,
85 dict(instructions_file="/home/builder/mill/instructions", 85 dict(instructions_file="/home/builder/mill/instructions",
86 check_interval=3600, name="testtreepkg")) 86 check_interval=3600,
87 name="testtreepkg",
88 treepkg_dir="/home/builder/mill",
89 tracks_dir="/home/builder/mill/tracks"))
87 self.assertEquals(sorted(packager_opts, 90 self.assertEquals(sorted(packager_opts,
88 key=operator.itemgetter("name")), 91 key=operator.itemgetter("name")),
89 [ 92 [
90 dict(name="extraargs", 93 dict(name="extraargs",
91 base_dir="/home/builder/mill/tracks/extraargs", 94 base_dir="/home/builder/mill/tracks/extraargs",
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)