Skip to content
Snippets Groups Projects
Commit 8838162a authored by Jesse Shapiro's avatar Jesse Shapiro Committed by GitHub
Browse files

Merge pull request #15453 from open-craft/haikuginger/fix-failing-catalog-integration-tests

[ENT-457] Fix failing course_mode tests
parents 2bb7a9fd add01fdf
No related merge requests found
......@@ -141,7 +141,7 @@ class CourseModeViewTest(CatalogIntegrationMixin, UrlResetMixin, ModuleStoreTest
for mode in ('audit', 'honor', 'verified'):
CourseModeFactory.create(mode_slug=mode, course_id=self.course.id)
catalog_integration = self.create_catalog_integration()
catalog_integration = self.create_catalog_integration(internal_api_url=settings.COURSE_CATALOG_API_URL)
UserFactory(username=catalog_integration.service_username)
self.mock_course_discovery_api_for_catalog_contains(
......@@ -254,7 +254,7 @@ class CourseModeViewTest(CatalogIntegrationMixin, UrlResetMixin, ModuleStoreTest
for mode in ('audit', 'honor', 'verified'):
CourseModeFactory.create(mode_slug=mode, course_id=self.course.id)
catalog_integration = self.create_catalog_integration()
catalog_integration = self.create_catalog_integration(internal_api_url=settings.COURSE_CATALOG_API_URL)
UserFactory(username=catalog_integration.service_username)
courses_in_catalog = [str(self.course.id)] if course_in_catalog else []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment