forked from adamm/git-importer
Testing to fetch it back
This commit is contained in:
@@ -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__":
|
||||||
|
Reference in New Issue
Block a user