Beispiel #1
0
 def test__quality__skip_wheel_pass__0(self):
     os.environ['PYROMA_MIN_SCORE'] = '0'
     self.write_config_files(working_config)
     build_sdist_package()
     build_wheel_packages()
     result = validate_package_quality()
     self.assertEqual(result, 0)
Beispiel #2
0
 def test__quality__no_package_directory(self):
     package_dir = standard_directories(
         'package_quality_validation')['packages']
     if os.path.exists(package_dir):
         os.rename(package_dir, package_dir + '.disabled')
     result = validate_package_quality()
     self.assertEqual(result, 0)
Beispiel #3
0
 def test__quality__fail(self):
     os.environ['PYROMA_MIN_SCORE'] = '9'
     self.write_config_files(working_config)
     build_sdist_package()
     result = validate_package_quality()
     self.assertNotEqual(result, 0)
Beispiel #4
0
 def test__quality__no_package_nofail(self):
     os.environ['VALIDATE_PACKAGE_QUALITY_FAIL_MISSING'] = 'False'
     result = validate_package_quality()
     self.assertEqual(result, 0)
Beispiel #5
0
 def test__quality__no_package_default_fail(self):
     result = validate_package_quality()
     self.assertEqual(result, 0)