We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 202f0a3 commit d74a0f0Copy full SHA for d74a0f0
backend/tests/utils/values_for_tests.py
@@ -2,6 +2,9 @@
2
3
from dataclasses import dataclass
4
from decimal import Decimal
5
+from datetime import datetime, timedelta
6
+import random
7
+
8
9
# Lists of data types for 'invalid data type' testing
10
integers = [-1, 0, 1]
@@ -292,9 +295,8 @@ class InvalidValues:
292
295
]
293
296
294
297
for_future_dates = [
- "2100-01-01", # Year in future
- "2050-12-31", # Year in future
- "2029-06-15", # Year in future
298
+ (datetime.now() + timedelta(days=random.randint(1, 30))).strftime("%Y-%m-%d")
299
+ for i in range(3)
300
301
302
# Strings which are not in acceptable date time format
0 commit comments