Skip to content

Commit

Permalink
feat: better comments in script
Browse files Browse the repository at this point in the history
  • Loading branch information
felipemontoya committed Mar 8, 2024
1 parent 868d53d commit 662d84c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion eox_tenant/test/tutor/integration.sh
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

0 comments on commit 662d84c

Please sign in to comment.