From e70b4d091eb9737a03ff8004d64bb9279e23498e Mon Sep 17 00:00:00 2001 From: Demid Date: Tue, 3 Jan 2023 17:07:17 +0200 Subject: [PATCH] test: fix hardcoded date of birth (2022) (#31488) (cherry picked from commit 21424bba2ff02f5b103e6bff3a6a61a5a3ec7906) --- common/djangoapps/student/tests/test_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/djangoapps/student/tests/test_models.py b/common/djangoapps/student/tests/test_models.py index fd90a2f37e4a..8a501f399cfd 100644 --- a/common/djangoapps/student/tests/test_models.py +++ b/common/djangoapps/student/tests/test_models.py @@ -794,7 +794,7 @@ def test_is_marketable_set_to_false_for_user_created_via_management_command(self 'username': 'some_user', 'name': 'Student Person', 'age': -1, - 'yearOfBirth': 2022, + 'yearOfBirth': datetime.datetime.today().year, 'education': None, 'address': None, 'gender': 'Male',