-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_commandline_nested.py
112 lines (99 loc) · 3.06 KB
/
test_commandline_nested.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
from copy2hash import copy2hash
from pathlib import Path
class TestNestedDirectories(object):
def test_local_nested_files_i(self):
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_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_local_nested_files_iii(self):
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_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