test_main_module
29 self.failUnless(specifier_set, msg=message)
30 self.assertIsInstance(specifier_set, SpecifierSet, message)
31
32 def test_main_module(self):33 self.assertTrue(len(INSECURE) > 0)
34 self.assertTrue(len(INSECURE_FULL) > 0)
35
test_using_valid_specifier_sets
20class TestData(unittest.TestCase):
21
22 @parameterized.expand(generatePackageSpecifiers)
23 def test_using_valid_specifier_sets(self, pkg, spec):24 message = f"Bad specifier for {pkg}: {spec!r}"
25 try:
26 specifier_set = SpecifierSet(spec)
generatePackageSpecifiers
7from safety_db import INSECURE, INSECURE_FULL
8
9
10def generatePackageSpecifiers():11 with open("data/insecure.json") as f:
12 database = json.loads(f.read())
13 for pkg, all_specs in database.items():
The module/function docstring is missing.
If you want to ignore this, you can configure this in the .deepsource.toml
file. Please refer to docs for available options.