Skip to content

Commit b528967

Browse files
author
Mr.Li
committed
测试pytest
1 parent ec48586 commit b528967

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/pytest.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ jobs:
1616
- name: Installation depends # 安装依赖
1717
run: |
1818
pip install -r bobotools/requirements.txt
19-
- name: Start test # 自动化测试
19+
- name: Start auto test # 自动化测试
2020
run: |
21-
pytest -s test.py
21+
pytest -s test/test.py

test.py renamed to test/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import sys
33
import glob
44

5-
rootpath = os.path.abspath(os.path.dirname(__file__))
5+
rootpath = os.path.abspath(os.path.dirname(__file__))+"/../"
66
sys.path.append(rootpath)
77
sys.path.extend(glob.glob(rootpath + "/*"))
88

0 commit comments

Comments
 (0)