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)
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"])
def __init__(self): Check.__init__(self) self.id = 5 self.version = "0.0.1"
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"