Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: wip: add wrapper script to give pytest correct env vars #20

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tutor/templates/build/openedx/bin/pytest
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

if [ -z $(pip freeze | grep pytest) ] ; then
echo 'error: pytest is not installed into the Python virtualenv' &>2
echo 'Perhaps you are trying to run tests with `tutor local` or `tutor k8s` instead of `tutor dev`?'
exit 1
fi

exec /openedx/venv/bin/pytest