-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathscripts.py
More file actions
32 lines (24 loc) · 687 Bytes
/
Copy pathscripts.py
File metadata and controls
32 lines (24 loc) · 687 Bytes
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
import subprocess
def test():
"""
Run all unittests. Equivalent to:
`poetry run python -u -m unittest discover`
"""
subprocess.run(["python", "-u", "-m", "unittest", "discover"])
def parse_test():
subprocess.run(
["python", "-m", "unittest", "tests.test_parser.TestParser.test_create_xer"]
)
def test_task_rsrc_compare():
subprocess.run(
[
"python",
"-m",
"unittest",
"tests.test_parser.TestParser.test_task_rsrc_compare",
]
)
def rem_hours_per_day_test():
subprocess.run(
["python", "-m", "unittest", "tests.test_parser.TestParser.test_rem_hour_calc"]
)