コード例 #1
0
 def test__insecure_deps(self):
     self.write_config_files(insecure_dep_config)
     artifacts_dir = os.environ.get('SD_ARTIFACTS_DIR', '')
     report_dir = os.path.join(artifacts_dir,
                               'reports/dependency_validation')
     json_report_filename = os.path.join(report_dir, 'safetydb.json')
     result = validate_with_safety()
     self.assertGreater(result, 0)
     self.assertTrue(os.path.exists(json_report_filename))
コード例 #2
0
 def test__secure_deps(self):
     self.write_config_files(working_config)
     result = validate_with_safety()
     self.assertEqual(result, 0)