def test_all_reports(self): args = { "infile": list(Path("test").glob("example1.txt")), "report": ["csv", "json", "pkl", "yaml", "txt", "xml", "out"], "report_name": "copy_report", "sha": ["sha256"], "directory": "home_home", "move": False, "file_extension": False, "file_suffix": False, "no_file_extension": False, "verbose": True, "version": False, } copy2hash.command_line_runner(opt=args) assert 1
def test_local_specific_file_iiii(self): args = { "infile": list(Path("test").glob("*.txt")), "report": ["json"], "report_name": "copy_report", "sha": ["sha256"], "directory": None, "move": False, "file_extension": False, "file_suffix": False, "no_file_extension": True, "verbose": False, "version": False, } copy2hash.command_line_runner(opt=args) assert 1
def test_local_nested_files_iiii(self): # Double check concerning copy rights args = { "infile": list(Path("test").rglob("*.txt")), "report": ["csv", "json", "pkl", "yaml", "txt", "xml"], "report_name": "report4travis", "sha": [ "sha1", "sha224", "sha256", "sha384", "sha512", "blake2b", "blake2s", "md5", "sha3_224", "sha3_256", "sha3_384", "sha3_512", "shake_128", "shake_256", ], "directory": None, "move": False, "file_extension": False, "file_suffix": False, "no_file_extension": False, "verbose": True, "version": False, } copy2hash.command_line_runner(opt=args) assert 1
def test_local_nested_files_ii(self): # Double check concerning copy rights args = { "infile": list(Path("test").rglob("*.txt")), "report": ["json"], "report_name": "copy_report", "sha": ["sha256"], "directory": None, "move": False, "file_extension": False, "file_suffix": False, "no_file_extension": False, "verbose": True, "version": False, } copy2hash.command_line_runner(opt=args) assert 1
def test_all_sha_keys(self): args = { "infile": list(Path("test").glob("example1.txt")), "report": ["json"], "report_name": "copy_report", "sha": [ "sha1", "sha224", "sha256", "sha384", "sha512", "blake2b", "blake2s", "md5", "sha3_224", "sha3_256", "sha3_384", "sha3_512", "shake_128", "shake_256", ], "directory": None, "move": False, "file_extension": False, "file_suffix": False, "no_file_extension": False, "verbose": True, "version": False, } copy2hash.command_line_runner(opt=args) assert 1
def test_local_directory(self): args = __refargs__ args["infile"] = ["."] copy2hash.command_line_runner(opt=args) assert 1
def test_nofiles(self): args = __refargs__ args["infile"] = [] copy2hash.command_line_runner(opt=args) assert 1