From fa38a4f90ff06e50685c118d4588eba45326dc5b Mon Sep 17 00:00:00 2001 From: Maria Fernanda Magallanes Zubillaga Date: Wed, 22 May 2024 15:42:20 -0500 Subject: [PATCH] fix: add integration test --- eox_hooks/tests/tutor/integration.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/eox_hooks/tests/tutor/integration.sh b/eox_hooks/tests/tutor/integration.sh index a39b36e..e4bb81e 100644 --- a/eox_hooks/tests/tutor/integration.sh +++ b/eox_hooks/tests/tutor/integration.sh @@ -3,3 +3,15 @@ # install the package in the edxapp env echo "Install package" pip install -e ../eox-hooks + +# run migrations +echo "Run migrations" +./manage.py lms migrate eox_hooks + +# install pytest +echo "Install test-requirements" +pip install -r requirements/test.txt + +# running the tests using the tutor settings +echo "Run tests" +pytest -s --ds=lms.envs.tutor.test /openedx/eox-hooks/eox_hooks/tests/tutor