Skip to content

Commit

Permalink
fix: add EOX_TENANT_BASE_URL setting
Browse files Browse the repository at this point in the history
  • Loading branch information
magajh committed Oct 14, 2024
1 parent 19ae235 commit 361b0af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions eox_tenant/settings/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def plugin_settings(settings): # pylint: disable=function-redefined

# Integration test settings
INTEGRATION_TEST_SETTINGS = {
"EOX_TENANT_API_BASE": "eox-tenant",
"LMS_BASE": "local.edly.io",
# Retrieved from the Tutor environment where the integration tests run
"EOX_TENANT_BASE_URL": f"http://{os.environ.get('LMS_HOST', 'local.edly.io')}/eox-tenant",
"API_TIMEOUT": 5,
}
2 changes: 1 addition & 1 deletion eox_tenant/test/integration/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def setUp(self):
"""
Set up the test suite.
"""
self.url = f"{settings['EOX_TENANT_API_BASE']}{reverse('eox-info')}"
self.url = f"{settings['EOX_TENANT_BASE_URL']}{reverse('eox-info')}"
super().setUp()

def test_info_view_success(self) -> None:
Expand Down

0 comments on commit 361b0af

Please sign in to comment.