summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-03-27 07:05:15 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-03-27 07:05:39 (GMT)
commit7ac7c48f672b610a1518b4af167f16265f3ce921 (patch)
treeae3e096dc55967cd3fbc4c754f19926ab3252ebb
parentf1af12e6a1b66b62332d0d981c9534727e80b6de (diff)
downloaddjango-mellon-7ac7c48f672b610a1518b4af167f16265f3ce921.zip
django-mellon-7ac7c48f672b610a1518b4af167f16265f3ce921.tar.gz
django-mellon-7ac7c48f672b610a1518b4af167f16265f3ce921.tar.bz2
tests: don't use a leading 0 in numbers
-rw-r--r--tests/test_utils.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py
index ca73ba6..49084f7 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -167,17 +167,17 @@ def test_iso8601_to_datetime(private_settings):
private_settings.USE_TZ = False
# UTC ISO8601 -> naive datetime UTC
assert iso8601_to_datetime('2010-10-01T10:10:34Z') == datetime.datetime(
- 2010, 10, 01, 10, 10, 34)
+ 2010, 10, 1, 10, 10, 34)
# NAIVE ISO8601 -> naive datetime UTC
assert iso8601_to_datetime('2010-10-01T10:10:34') == datetime.datetime(
- 2010, 10, 01, 10, 10, 34)
+ 2010, 10, 1, 10, 10, 34)
private_settings.USE_TZ = True
# UTC+1h ISO8601 -> Aware datetime UTC
assert iso8601_to_datetime('2010-10-01T10:10:34+01:00') == datetime.datetime(
- 2010, 10, 01, 9, 10, 34, tzinfo=pytz.utc)
+ 2010, 10, 1, 9, 10, 34, tzinfo=pytz.utc)
# Naive ISO8601 -> Aware datetime UTC
assert iso8601_to_datetime('2010-10-01T10:10:34') == datetime.datetime(
- 2010, 10, 01, 10, 10, 34, tzinfo=pytz.utc)
+ 2010, 10, 1, 10, 10, 34, tzinfo=pytz.utc)
def test_flatten_datetime():