-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
868d53d
commit 662d84c
Showing
1 changed file
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# install the package in the edxapp env | ||
echo "Install package" | ||
pip install -e ../eox-tenant | ||
|
||
# test that the commands for eox-tenant are being listed at the lms | ||
echo "Tests django commands" | ||
is_command_installed=$(./manage.py lms help | grep eox | wc -l) | ||
if [ $is_command_installed == 0 ] ; then | ||
echo 'package was not installed correctly' | ||
exit -1; | ||
fi | ||
|
||
# run migrations | ||
echo "Run migrations" | ||
./manage.py lms migrate eox_tenant | ||
|
||
# running the tests using the tutor settings | ||
# install pytest | ||
echo "Install test-requirements" | ||
make test-requirements | ||
|
||
# running the tests using the tutor settings | ||
echo "Install test-requirements" | ||
pytest -s --ds=lms.envs.tutor.test /openedx/eox-tenant/eox_tenant/test/tutor |