Esempio n. 1
0
 def test__sdv4_SD_BUILD__set(self):
     self.delkeys(['SD_BUILD', 'SD_BUILD_ID', 'SD_PULL_REQUEST'])
     os.environ['SD_BUILD'] = '9999'
     versioner = VersionSDV4Build(ignore_meta_version=True,
                                  log_errors=False)
     self.assertEqual(str(versioner), '0.0.9999')
     versioner.update_setup_cfg_metadata()
     config_version = Version().read_setup_version()
     self.assertEqual(config_version, ['0', '0', '9999'])
Esempio n. 2
0
 def test__sdv4_SD_BUILD__PR__unset(self):
     self.delkeys(['SD_BUILD', 'SD_BUILD_ID', 'SD_PULL_REQUEST'])
     with self.assertRaises(VersionError):
         version = str(
             VersionSDV4Build(ignore_meta_version=True, log_errors=False))