Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.provenance.tests.test_provenance_db::test_provenance_revision_add
Failed

TEST RESULT

Run At
Mar 18 2021, 6:41 PM
Details
provenance = <swh.provenance.postgresql.provenancedb_with_path.ProvenanceWithPathDB object at 0x7f2eedca3f60> swh_storage_with_objects = <swh.storage.postgresql.storage.Storage object at 0x7f2eedc91dd8> archive_pg = <swh.provenance.postgresql.archive.ArchivePostgreSQL object at 0x7f2eedc87ba8> def test_provenance_revision_add(provenance, swh_storage_with_objects, archive_pg): """Test the ProvenanceDB.revision_add() method""" for revision in TEST_OBJECTS["revision"]: entry = RevisionEntry( archive_pg, id=revision.id, date=ts2dt(revision.date), root=revision.directory, parents=revision.parents, ) revision_add(provenance, archive_pg, entry) # there should be only one 'location' for the empty path provenance.cursor.execute("SELECT count(*) FROM location WHERE path=''") > assert provenance.cursor.fetchone()[0] == 1 E assert 0 == 1 E +0 E -1 .tox/py3/lib/python3.7/site-packages/swh/provenance/tests/test_provenance_db.py:58: AssertionError