Split Revision into OBS and DB

This commit is contained in:
Stephan Kulow
2022-10-18 12:17:43 +02:00
parent c534fb028e
commit 25b45c5073
6 changed files with 54 additions and 15 deletions

View File

@@ -4,7 +4,7 @@ import xml.etree.ElementTree as ET
from lib.db import DB
from lib.history import History
from lib.obs import OBS
from lib.revision import Revision
from lib.obs_revision import OBSRevision
class TestDBMethods(unittest.TestCase):
@@ -14,7 +14,7 @@ class TestDBMethods(unittest.TestCase):
self.history = History(self.obs, "xz")
def test_import(self):
test_rev = Revision(self.obs, self.history, "openSUSE:Factory", "xz")
test_rev = OBSRevision(self.obs, self.history, "openSUSE:Factory", "xz")
test_rev.parse(
ET.fromstring(
"""<revision rev="70" vrev="1">