From 1a750f2171e244d34f619c971404d8e319b84fc6 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Tue, 18 Oct 2022 17:57:49 +0200 Subject: [PATCH] Testing to fetch it back --- tests/db_import_test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/db_import_test.py b/tests/db_import_test.py index aa4d53f..f84f46c 100644 --- a/tests/db_import_test.py +++ b/tests/db_import_test.py @@ -29,6 +29,10 @@ class TestDBMethods(unittest.TestCase): ) ) 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__":