moto/tests/test_stepfunctions
Anders Kaseorg 4aff7147b5
test_stepfunctions: Fix failures under non-UTC timezone (#3528)
These tests were passing with TZ=UTC, but under a non-UTC timezone
they were failing:

E       AssertionError: given
E       X = [{'timestamp': datetime.datetime(2020, 1, 1, 0, 0, tzinfo=tzutc()), …}, …]
E           and
E       Y = [{'timestamp': datetime.datetime(2020, 1, 1, 0, 0, tzinfo=tzlocal()), …}, …]
E       X[0]['timestamp'] != Y[0]['timestamp']

With this fix, they pass either way.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2020-12-09 12:25:11 +00:00
..
__init__.py Port test suite from nose to pytest. 2020-11-10 08:23:44 +01:00
test_stepfunctions.py test_stepfunctions: Fix failures under non-UTC timezone (#3528) 2020-12-09 12:25:11 +00:00