We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32457b3 commit 143a204Copy full SHA for 143a204
1 file changed
courses/tests/helpers.py
@@ -26,6 +26,9 @@
26
from users.models import CustomUser
27
28
29
+DEFAULT_MODULE_START_DATE = date(2026, 1, 1)
30
+
31
32
@dataclass(frozen=True)
33
class CourseTestContext:
34
user: CustomUser
@@ -110,7 +113,7 @@ def create_module(
110
113
return CourseModule.objects.create(
111
114
course=course,
112
115
title=title,
- start_date=start_date_value or date.today(),
116
+ start_date=start_date_value or DEFAULT_MODULE_START_DATE,
117
status=status,
118
order=order,
119
)
0 commit comments