add tests to canceled enrollment or scheduled with seat

This commit is contained in:
2026-01-26 13:00:36 -03:00
parent 3e080a2d21
commit 2d191c5fc8
14 changed files with 176 additions and 13 deletions

View File

@@ -38,7 +38,7 @@ class Course(BaseModel):
class Enrollment(BaseModel):
id: UUID4 | str = Field(default_factory=uuid4)
id: UUID4 | str
user: User
course: Course
progress: int = Field(default=0, ge=0, le=100)
@@ -61,7 +61,7 @@ Org = TypedDict('Org', {'org_id': str, 'name': str})
CreatedBy = TypedDict('CreatedBy', {'id': str, 'name': str})
Seat = TypedDict('Seat', {'order_id': str})
Seat = TypedDict('Seat', {'order_id': str, 'enrollment_id': NotRequired[str]})
DeduplicationWindow = TypedDict('DeduplicationWindow', {'offset_days': int})