swh_storage = <swh.storage.postgresql.storage.Storage object at 0x7f2b090807f0>
clearcode_dsn = "dbname=clearcode user=postgres host=127.0.0.1 port=26194 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=timezone.utc) == get_last_run_date(
cursor=cursor
)
E AssertionError: assert datetime.date....timezone.utc) == '2021-02-06 00:00:00+00:00'
E +datetime.datetime(2021, 2, 6, 0, 0, tzinfo=datetime.timezone.utc)
E -'2021-02-06 00:00:00+00:00'
.tox/py3/lib/python3.7/site-packages/swh/clearlydefined/tests/test_orchestrator.py:151: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Feb 19 2021, 7:43 AM