Exemplo n.º 1
0
    def __init__(self):
        Check.__init__(self)
        self.id = 25
        self.version = "0.0.1"

        iso_file_path = os.path.join(
            os.path.dirname(os.path.abspath(__file__)),
            'resources',
            'iso-639.json'
        )
        self.iso_codes = pd.read_json(iso_file_path)
Exemplo n.º 2
0
 def __init__(self):
     Check.__init__(self)
     self.id = 13
     self.version = "0.0.1"
     spdxFilePath = os.path.join(
         os.path.dirname(os.path.abspath(__file__)),
         'resources',
         'licenses.json'
     )
     with open(spdxFilePath, "r") as f:
         licenses_dict = json.load(f)
     self.licenses = pd.DataFrame(licenses_dict["licenses"])
Exemplo n.º 3
0
 def __init__(self):
     Check.__init__(self)
     self.id = 5
     self.version = "0.0.1"
Exemplo n.º 4
0
def test_blank_check():
    check = Check()
    with pytest.raises(NotImplementedError) as nie:
        check._do_check(Rdp("123"))
        assert str(
            nie) == "_do_check must be implemented by subclasses of Check"