コード例 #1
0
ファイル: test_build.py プロジェクト: Teslos-Dev/autobuild
 def test_autobuild_build(self):
     # Make sure the verbose 'new requirement' message is produced when the
     # missing key is version_file with an older version config file. The
     # (?s) flag allows '.' to match newline, important because 'new
     # requirement' may be on a different line of the exception message
     # than the attribute name version_file.
     with exc(BuildError, "(?is)version_file.*new requirement"):
         build('build', '--config-file=' + self.tmp_file, '--id=123456')
コード例 #2
0
ファイル: test_build.py プロジェクト: Teslos-Dev/autobuild
 def test_autobuild_build(self):
     build('build', '--config-file=' + self.tmp_file, '--id=123456')
     assert_equals(self.read_metadata().package_description.version, "2.3")
コード例 #3
0
ファイル: test_build.py プロジェクト: Teslos-Dev/autobuild
 def test_autobuild_build(self):
     with exc(common.AutobuildError, "version_file"):
         build('build', '--config-file=' + self.tmp_file, '--id=123456')
コード例 #4
0
ファイル: test_build.py プロジェクト: Teslos-Dev/autobuild
 def test_autobuild_build(self):
     # Make sure the verbose 'new requirement' message isn't produced with
     # a current format config file.
     with exc(BuildError, "version_file", without="(?i)new requirement"):
         build('build', '--config-file=' + self.tmp_file, '--id=123456')
コード例 #5
0
ファイル: test_build.py プロジェクト: Teslos-Dev/autobuild
 def test_autobuild_build(self):
     # Make sure the verbose 'new requirement' message is only produced
     # when the missing key is in fact version_file, especially with an
     # older version config file.
     with exc(BuildError, "name", without="(?i)new requirement"):
         build('build', '--config-file=' + self.tmp_file, '--id=123456')