Page MenuHomeSoftware Heritage

Jenkins > .tox.py3-full.lib.python3.7.site-packages.swh.model.tests.test_identifiers::test_normalize_timestamp_datetime[999999-tz4-1439-date0-1582810759]
Failed

TEST RESULT

Run At
Jun 15 2021, 10:46 AM
Details
date = datetime.datetime(2020, 2, 28, 14, 38, 19, 999999, tzinfo=datetime.timezone(datetime.timedelta(seconds=86340))) seconds = 1582810759, tz = datetime.timezone(datetime.timedelta(seconds=86340)) offset = 1439, microsecond = 999999 @pytest.mark.parametrize("date, seconds", zip(TS_DATETIMES, TS_DT_EXPECTED)) @pytest.mark.parametrize("tz, offset", zip(TS_TIMEZONES, TS_TZ_EXPECTED)) @pytest.mark.parametrize("microsecond", [0, 1, 10, 100, 1000, 999999]) def test_normalize_timestamp_datetime(date, seconds, tz, offset, microsecond): date = date.astimezone(tz).replace(microsecond=microsecond) > assert normalize_timestamp(date) == { "timestamp": {"seconds": seconds, "microseconds": microsecond}, "offset": offset, "negative_utc": False, } E AssertionError: assert {'negative_ut...: 1582814359}} == {'negative_ut...: 1582810759}} E Omitting 2 identical items, use -vv to show E Differing items: E {'timestamp': {'microseconds': 999999, 'seconds': 1582814359}} != {'timestamp': {'microseconds': 999999, 'seconds': 1582810759}} E Full diff: E { E 'negative_utc': False, E 'offset': 1439,... E E ...Full output truncated (6 lines hidden), use '-vv' to show .tox/py3-full/lib/python3.7/site-packages/swh/model/tests/test_identifiers.py:1196: AssertionError