Skip to content

Commit 8ebdca5

Browse files
committed
fixup! 🏗️(project) migrate to pydantic v2 and switch tests to polyfactory
1 parent 5d9eb9e commit 8ebdca5

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/ralph/models/xapi/base/ifi.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ class BaseXapiMboxIFI(BaseModelWithConfig):
2828
mbox (MailtoEmail): Consists of the Agent's email address.
2929
"""
3030

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

3533

src/ralph/models/xapi/base/unnested_objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class BaseXapiInteractionComponent(BaseModelWithConfig):
3838
description (LanguageMap): Consists of the description of the interaction.
3939
"""
4040

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

4444

src/ralph/models/xapi/virtual_classroom/results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ class VirtualClassroomAnsweredPollResult(BaseXapiResult):
1212
response (str): Consists of the response for the given Activity.
1313
"""
1414

15-
response: NonEmptyStrictStr # = StrictStr()
15+
response: NonEmptyStrictStr

0 commit comments

Comments
 (0)