forked from importers/git-importer
Split Revision into OBS and DB
This commit is contained in:
@@ -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">
|
||||
|
Reference in New Issue
Block a user