Skip to content

Commit c09073a

Browse files
committed
Resolved error in tests (caused by invalid ISO 8601 parsing in python < 3.7) 🚒
1 parent 391966f commit c09073a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_valid.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ def test_valid(rf: RequestFactory):
2828
}
2929
],
3030
'metadata': {
31-
'created_at': datetime.datetime.strptime('2019-10-21T18:57:03+01:00', "%Y-%m-%dT%H:%M:%S%z"),
32-
'updated_at': datetime.datetime.strptime('2019-10-21T18:57:03+01:00', "%Y-%m-%dT%H:%M:%S%z"),
31+
'created_at': datetime.datetime.strptime('2019-10-21T18:57:03+0100', "%Y-%m-%dT%H:%M:%S%z"),
32+
'updated_at': datetime.datetime.strptime('2019-10-21T18:57:03+0100', "%Y-%m-%dT%H:%M:%S%z"),
3333
}
3434
}
3535

0 commit comments

Comments
 (0)