Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.clearlydefined.tests.test_orchestrator::test_orchestrator
Failed

TEST RESULT

Run At
Feb 8 2021, 6:56 AM
Details
swh_storage = <swh.storage.postgresql.storage.Storage object at 0x7f9c683cad30> clearcode_dsn = "dbname=clearcode user=postgres host=127.0.0.1 port=11149 options=''" datadir = '/var/lib/jenkins/workspace/DMFCD/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/clearlydefined/tests/data' def test_orchestrator(swh_storage, clearcode_dsn, datadir): connection = psycopg2.connect(dsn=clearcode_dsn) cursor = connection.cursor() add_content_data(swh_storage) # Fill data in clearcode database, for first time orchestration fill_data_before_updation_of_storage( connection=connection, cursor=cursor, datadir=datadir ) orchestrator(storage=swh_storage, clearcode_dsn=clearcode_dsn) # Check how much data is unmapped after first orchestration assert 2 == get_length_of_unmapped_data(connection=connection, cursor=cursor) > assert datetime( 2021, 2, 6, 0, 0, tzinfo=psycopg2.tz.FixedOffsetTimezone(offset=330, name=None) ) == get_last_run_date(cursor=cursor) E assert datetime.date...0, name=None)) == datetime.date...0, name=None)) E +datetime.datetime(2021, 2, 6, 0, 0, tzinfo=psycopg2.tz.FixedOffsetTimezone(offset=330, name=None)) E -datetime.datetime(2021, 2, 6, 0, 0, tzinfo=psycopg2.tz.FixedOffsetTimezone(offset=0, name=None)) .tox/py3/lib/python3.7/site-packages/swh/clearlydefined/tests/test_orchestrator.py:145: AssertionError