Python Requirements Update (#33737)

* chore: Updating Python Requirements
* fix: fix test failure occurring due to faker upgrade
---------

Co-authored-by: UsamaSadiq <usama7274@gmail.com>
This commit is contained in:
edX requirements bot
2023-11-17 13:56:24 -05:00
committed by GitHub
parent 104d42c67a
commit c240fd8b52
9 changed files with 98 additions and 92 deletions

View File

@@ -36,8 +36,10 @@ def generate_zulu_datetime():
The catalog returns UTC datetimes formatted using Z, the zone designator
for the zero UTC offset, not the +00:00 offset. For more, see
https://en.wikipedia.org/wiki/ISO_8601#UTC.
Faker.date_time() now returns time with sub-seconds in %S.%f format
but we don't need the sub_seconds precision, only the whole seconds
"""
return fake.date_time().isoformat() + 'Z'
return fake.date_time().isoformat().split('.')[0] + 'Z'
def generate_price_ranges():