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 9903c69 commit b5600eaCopy full SHA for b5600ea
pynamodb/constants.py
@@ -97,7 +97,7 @@
97
98
# Defaults
99
DEFAULT_ENCODING = 'utf-8'
100
-DATETIME_FORMAT = '%Y-%m-%dT%H:%M:%S.%f%z'
+DATETIME_FORMAT = '%Y-%m-%dT%H:%M:%S.%f+0000'
101
SERVICE_NAME = 'dynamodb'
102
HTTP_OK = 200
103
HTTP_BAD_REQUEST = 400
tests/test_attributes.py
@@ -204,7 +204,7 @@ def test_utc_date_time_deserialize_pre_1000_not_padded(self):
204
]
205
)
206
def test_utc_date_time_invalid(self, invalid_string):
207
- with pytest.raises(ValueError, match="does not match format"):
+ with pytest.raises(ValueError, match=r"does not match format '%Y-%m-%dT%H:%M:%S.%f\+0000'"):
208
self.attr.deserialize(invalid_string)
209
210
0 commit comments