Skip to content

Commit

Permalink
fixup! ✨(api) introduce Moodle indexers
Browse files Browse the repository at this point in the history
  • Loading branch information
wilbrdt committed Jan 22, 2024
1 parent 97a5c5d commit 0a5befc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/core/warren/tests/xi/indexers/moodle/test_etl.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def test_course_content_factory(
)

# Attempt to build a 'CourseContent' indexer with a wrong iri
with pytest.raises(ValueError, match=f"Wrong course iri {wrong_iri}"):
with pytest.raises(ValueError, match=f"Wrong course IRI {wrong_iri}"):
await CourseContent.factory(
source=Moodle(),
target=ExperienceIndex(),
Expand Down
2 changes: 1 addition & 1 deletion src/api/core/warren/xi/indexers/moodle/etl.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async def factory(
"""Instantiate the class after fetching the given course."""
course = await target.experience.get(course_iri)
if not course:
raise ValueError(f"Wrong course iri {course_iri}")
raise ValueError(f"Wrong course IRI {course_iri}")

return cls(lms=source, xi=target, course=course, **kwargs)

Expand Down

0 comments on commit 0a5befc

Please sign in to comment.