-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.py
22 lines (17 loc) · 897 Bytes
/
run.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import sys
import pytest
if __name__ == '__main__':
print(''' _ _ _ _
| | ___ __ _ _ __ _ __ _ __ _ _| |_| |__ ___ _ __ | | _____ __ _ _ __ ___
| |/ _ \/ _` | '__| '_ \ | '_ \| | | | __| '_ \ / _ \| '_ \ | |/ / _ \ / _` | '_ \/ __|
| | __/ (_| | | | | | |_| |_) | |_| | |_| | | | (_) | | | |_| < (_) | (_| | | | \__ \\
|_|\___|\__,_|_| |_| |_(_) .__/ \__, |\__|_| |_|\___/|_| |_(_)_|\_\___/ \__,_|_| |_|___/
|_| |___/ ''')
pytest_params = [
'-x', # first fail
'--verbose', # на каждый тест по строке в выводе
]
args = sys.argv
if args and len(args) >= 2:
pytest_params.append('koans/about_%s.py' % args[1])
pytest.main(pytest_params)