Skip to content

Commit

Permalink
feat: add integration tests for the enrollments api AP-1346 (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanttV authored Oct 1, 2024
1 parent 3de097e commit 0bc63c6
Show file tree
Hide file tree
Showing 6 changed files with 898 additions and 101 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
tutor_version: ['<18.0.0', '<19.0.0']
tutor_version: ['<18.0.0', '<19.0.0', 'nightly']
steps:
- name: Run Integration Tests
uses: eduNEXT/integration-test-in-tutor@mjh/run-integration-tests-outside-container
with:
tutor_version: ${{ matrix.tutor_version }}
app_name: 'eox-core'
openedx_extra_pip_requeriments: 'eox-tenant'
openedx_extra_pip_requirements: 'eox-tenant'
shell_file_to_run: 'scripts/execute_integration_tests.sh'
fixtures_file: 'fixtures/initial_data.json'
openedx_imports_test_file_path: 'eox_core/edxapp_wrapper/tests/integration/test_backends.py'
openedx_imports_test_function_name: 'test_current_settings_code_imports'
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ python-quality-test:
run-tests: python-test python-quality-test

run-integration-tests: install-dev-dependencies
pytest ./eox_core --ignore-glob='**/unit/*' --ignore-glob='**/edxapp_wrapper/*'
pytest -rPf ./eox_core --ignore-glob='**/unit/*' --ignore-glob='**/edxapp_wrapper/*'

upgrade: export CUSTOM_COMPILE_COMMAND=make upgrade
upgrade: ## update the requirements/*.txt files with the latest packages satisfying requirements/*.in
Expand Down
52 changes: 52 additions & 0 deletions eox_core/api/v1/tests/integration/data/fake_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,5 +626,57 @@
"city": "Charleston",
"goals": "Aenean vulputate eleifend tellus.",
},
{
"username": "gwalker33",
"email": "[email protected]",
"fullname": "Gary Walker",
"password": "zP7%1Yt!dB@",
"activate_user": True,
"mailing_address": "321 Birch Road",
"year_of_birth": 1996,
"gender": "m",
"level_of_education": "hs",
"city": "Sacramento",
"goals": "Praesent vestibulum dapibus nibh.",
},
{
"username": "tturner34",
"email": "[email protected]",
"fullname": "Tina Turner",
"password": "wJ4@5Lm!tQ#",
"activate_user": False,
"mailing_address": "753 Pine Street",
"year_of_birth": 1988,
"gender": "f",
"level_of_education": "m",
"city": "Portland",
"goals": "Duis lobortis massa nec est.",
},
{
"username": "jwhite35",
"email": "[email protected]",
"fullname": "Jack White",
"password": "qB2%9Cv!xF@",
"activate_user": True,
"mailing_address": "159 Spruce Lane",
"year_of_birth": 1995,
"gender": "m",
"level_of_education": "hs",
"city": "New Orleans",
"goals": "Vestibulum volutpat pretium libero.",
},
{
"username": "gwalker33",
"email": "[email protected]",
"fullname": "Gary Walker",
"password": "zP7%1Yt!dB@",
"activate_user": True,
"mailing_address": "321 Birch Road",
"year_of_birth": 1996,
"gender": "m",
"level_of_education": "hs",
"city": "Sacramento",
"goals": "Praesent vestibulum dapibus nibh.",
},
]
)
Loading

0 comments on commit 0bc63c6

Please sign in to comment.