Testing to fetch it back

This commit is contained in:
Stephan Kulow 2022-10-18 17:57:49 +02:00
parent d747a3a761
commit 1a750f2171

View File

@ -29,6 +29,10 @@ class TestDBMethods(unittest.TestCase):
) )
) )
DBRevision.import_obs_rev(self.db, test_rev) DBRevision.import_obs_rev(self.db, test_rev)
db_rev = DBRevision.fetch_revision(
self.db, project="openSUSE:Factory", package="xz", rev="70"
)
self.assertEqual(str(test_rev), str(db_rev))
if __name__ == "__main__": if __name__ == "__main__":