Skip to content

Commit

Permalink
fixup! 🏗️(project) migrate to pydantic v2 and switch tests to `poly…
Browse files Browse the repository at this point in the history
…factory`
  • Loading branch information
wilbrdt committed Apr 18, 2024
1 parent 5d9eb9e commit 8ebdca5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/ralph/models/xapi/base/ifi.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ class BaseXapiMboxIFI(BaseModelWithConfig):
mbox (MailtoEmail): Consists of the Agent's email address.
"""

# pattern = r'mailto:\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,7}\b'
# mbox: Annotated[str, Field(pattern=pattern)]#
mbox: MailtoEmail


Expand Down
2 changes: 1 addition & 1 deletion src/ralph/models/xapi/base/unnested_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class BaseXapiInteractionComponent(BaseModelWithConfig):
description (LanguageMap): Consists of the description of the interaction.
"""

id: Annotated[str, StringConstraints(pattern=r"^[^\s]+$")] #
id: Annotated[str, StringConstraints(pattern=r"^[^\s]+$")]
description: Optional[LanguageMap] = None


Expand Down
2 changes: 1 addition & 1 deletion src/ralph/models/xapi/virtual_classroom/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ class VirtualClassroomAnsweredPollResult(BaseXapiResult):
response (str): Consists of the response for the given Activity.
"""

response: NonEmptyStrictStr # = StrictStr()
response: NonEmptyStrictStr

0 comments on commit 8ebdca5

Please sign in to comment.