Skip to content

Commit d54fd19

Browse files
committed
fix: update python bash script
1 parent d1704d1 commit d54fd19

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

docs/technologies/python-pytest.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,15 @@ set -e 1
128128

129129
mkdir -p /home/damner/code/.labtests
130130

131-
mv $TEST_FILE_NAME /home/damner/code/.labtests/pytest.py
131+
mv $TEST_FILE_NAME /home/damner/code/.labtests/user-test-code.py
132132
echo "" > /home/damner/code/.labtests/__init__.py
133133

134+
# Install pytest
135+
pip3 install pytest pytest-json-report
136+
134137
# run test
135138
cd /home/damner/code/.labtests
136-
pytest --json-report pytest.py || true
139+
pytest --json-report user-test-code.py || true
137140

138141
# process results file
139142
cat > processPythonResults.js << EOF

0 commit comments

Comments
 (0)