comparison test/test_readconfig.py @ 341:dc079231a062

Changed testmessages to use the correct types
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 15 Apr 2010 14:53:31 +0000
parents 23be5ab5bc7c
children f06f707d9fda
comparison
equal deleted inserted replaced
340:a83a78a93fd6 341:dc079231a062
26 root_cmd: sudo 26 root_cmd: sudo
27 pbuilder_dir: %(treepkg_dir)s/pbuilder 27 pbuilder_dir: %(treepkg_dir)s/pbuilder
28 pbuilderrc: %(pbuilder_dir)s/pbuilderrc 28 pbuilderrc: %(pbuilder_dir)s/pbuilderrc
29 deb_email: treepkg@example.com 29 deb_email: treepkg@example.com
30 deb_fullname: TreePKG 30 deb_fullname: TreePKG
31 pkg_revision_template: treepkg%%(pkg_revision)d 31 pkg_revision_template: treepkg%%(pkg_revision)s
32 handle_dependencies: False 32 handle_dependencies: False
33 33
34 [treepkg] 34 [treepkg]
35 instructions_file: %(treepkg_dir)s/instructions 35 instructions_file: %(treepkg_dir)s/instructions
36 check_interval: 3600 36 check_interval: 3600
40 svn_url: svn://example.com/%(name)s/trunk 40 svn_url: svn://example.com/%(name)s/trunk
41 base_dir: %(tracks_dir)s/%(name)s 41 base_dir: %(tracks_dir)s/%(name)s
42 packager_class: readconfig_test.%(name)s 42 packager_class: readconfig_test.%(name)s
43 handle_dependencies: True 43 handle_dependencies: True
44 signing_key_id: abcd1234 44 signing_key_id: abcd1234
45 changelog_msg_template: Update to feature branch r%%(revision)d 45 changelog_msg_template: Update to feature branch r%%(revision)s
46 version_template: 1.0.svn%%(revision)s 46 version_template: 1.0.svn%%(revision)s
47 47
48 [pkg_extraargs] 48 [pkg_extraargs]
49 svn_url: svn://example.com/%(name)s/trunk 49 svn_url: svn://example.com/%(name)s/trunk
50 svn_subset: -N . 50 svn_subset: -N .
86 self.assertEquals(sorted(packager_opts, 86 self.assertEquals(sorted(packager_opts,
87 key=operator.itemgetter("name")), 87 key=operator.itemgetter("name")),
88 [ 88 [
89 dict(name="extraargs", 89 dict(name="extraargs",
90 base_dir="/home/builder/mill/tracks/extraargs", 90 base_dir="/home/builder/mill/tracks/extraargs",
91 changelog_msg_template="Update to revision %(revision)d", 91 changelog_msg_template="Update to revision %(revision)s",
92 deb_email="treepkg@example.com", 92 deb_email="treepkg@example.com",
93 deb_fullname="TreePKG", 93 deb_fullname="TreePKG",
94 deb_build_options="parallel=2", 94 deb_build_options="parallel=2",
95 pkg_revision_template="treepkg%(pkg_revision)d", 95 pkg_revision_template="treepkg%(pkg_revision)s",
96 handle_dependencies=False, 96 handle_dependencies=False,
97 packager_class="readconfig_test.extraargs", 97 packager_class="readconfig_test.extraargs",
98 pbuilderrc="/home/builder/mill/pbuilder/pbuilderrc", 98 pbuilderrc="/home/builder/mill/pbuilder/pbuilderrc",
99 # pkg_basename is passed as an empty string by default. 99 # pkg_basename is passed as an empty string by default.
100 # The PackageTrack an empty pkg_basename it with the 100 # The PackageTrack an empty pkg_basename it with the
112 git_url="", 112 git_url="",
113 git_branch=""), 113 git_branch=""),
114 dict(name="simple", 114 dict(name="simple",
115 base_dir="/home/builder/mill/tracks/simple", 115 base_dir="/home/builder/mill/tracks/simple",
116 changelog_msg_template=("Update to feature branch" 116 changelog_msg_template=("Update to feature branch"
117 " r%(revision)d"), 117 " r%(revision)s"),
118 deb_email="treepkg@example.com", 118 deb_email="treepkg@example.com",
119 deb_fullname="TreePKG", 119 deb_fullname="TreePKG",
120 deb_build_options="", 120 deb_build_options="",
121 rules_svn_url="", 121 rules_svn_url="",
122 pkg_revision_template="treepkg%(pkg_revision)d", 122 pkg_revision_template="treepkg%(pkg_revision)s",
123 handle_dependencies=True, 123 handle_dependencies=True,
124 packager_class="readconfig_test.simple", 124 packager_class="readconfig_test.simple",
125 pbuilderrc="/home/builder/mill/pbuilder/pbuilderrc", 125 pbuilderrc="/home/builder/mill/pbuilder/pbuilderrc",
126 pkg_basename="simple1", 126 pkg_basename="simple1",
127 root_cmd=['sudo'], 127 root_cmd=['sudo'],
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)