-
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
71737f2
commit df86b60
Showing
7 changed files
with
59 additions
and
0 deletions.
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
Empty file.
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
""" | ||
The conftest module sets up the database connection for pytest-django. | ||
The integration tests will reuse the database from tutor local so a noop | ||
django_db_setup is required. | ||
See: https://pytest-django.readthedocs.io/en/latest/database.html | ||
""" | ||
|
||
import pytest # pylint: disable=import-error | ||
|
||
|
||
@pytest.fixture(scope='session') | ||
def django_db_setup(): | ||
""" | ||
Makes the tests reuse the existing database | ||
""" |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
""" | ||
Test integration file. | ||
""" | ||
from django.test import TestCase | ||
|
||
|
||
class TutorIntegrationTestCase(TestCase): | ||
""" | ||
Tests integration with openedx | ||
""" | ||
|
||
# pylint: disable=import-outside-toplevel,unused-import | ||
def test_current_settings_code_imports(self): | ||
""" | ||
Running this imports means that our backends import the right signature | ||
""" | ||
import eox_tenant.edxapp_wrapper.backends.oauth_dispatch_j_v1 # isort:skip | ||
import eox_tenant.edxapp_wrapper.backends.branding_api_l_v1 # isort:skip | ||
import eox_tenant.edxapp_wrapper.backends.site_configuration_module_i_v1 # isort:skip | ||
import eox_tenant.edxapp_wrapper.backends.theming_helpers_h_v1 # isort:skip | ||
import eox_tenant.edxapp_wrapper.backends.users_l_v1 # isort:skip | ||
import eox_tenant.edxapp_wrapper.backends.bearer_authentication_l_v1 # isort:skip | ||
import eox_tenant.edxapp_wrapper.backends.edxmako_l_v1 # isort:skip |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[pytest] | ||
python_files = integration_test_*.py | ||
filterwarnings = | ||
default | ||
# We ignore every warning while we actually get the testing infrastructure | ||
# running for different version of tutor in gh actions | ||
ignore: |
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 |
---|---|---|
|
@@ -9,3 +9,4 @@ coverage | |
mock | ||
testfixtures | ||
path.py | ||
pyyaml |
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