Mercurial > treepkg
diff test/test_readconfig.py @ 387:c1f3be727f9d treepkg-status
renamed new status dir to info because of a naming conflict with status.py
let the user specify a treepkg name in the config
the name is propagated to PackagerGroup
[treepkg]
name: <treepkgname>
becomes:
pg = PackagerGroup(...)
pg.name
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Thu, 08 Jul 2010 10:07:39 +0000 |
parents | 610b7e57f966 |
children | a690fc689f2f |
line wrap: on
line diff
--- a/test/test_readconfig.py Wed Jul 07 15:40:48 2010 +0000 +++ b/test/test_readconfig.py Thu Jul 08 10:07:39 2010 +0000 @@ -34,6 +34,7 @@ [treepkg] instructions_file: %(treepkg_dir)s/instructions check_interval: 3600 +name: testtreepkg [pkg_simple] pkg_basename: simple1 @@ -82,7 +83,7 @@ treepkg_opts, packager_opts = read_config(config_file) self.assertEquals(treepkg_opts, dict(instructions_file="/home/builder/mill/instructions", - check_interval=3600)) + check_interval=3600, name="testtreepkg")) self.assertEquals(sorted(packager_opts, key=operator.itemgetter("name")), [ @@ -134,3 +135,9 @@ git_url="", git_branch="", builder_cls="PBuilder")]) + +def main(): + unittest.main() + +if __name__ == "__main__": + main()