Add python3 support
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
# Please read the COPYING file.
|
||||
#
|
||||
|
||||
import testcase
|
||||
from . import testcase
|
||||
import pisi
|
||||
|
||||
class ComponentDBTestCase(testcase.TestCase):
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
# Please read the COPYING file.
|
||||
#
|
||||
|
||||
import testcase
|
||||
from . import testcase
|
||||
import pisi
|
||||
|
||||
class FilesDBTestCase(testcase.TestCase):
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
# Please read the COPYING file.
|
||||
#
|
||||
|
||||
import testcase
|
||||
from . import testcase
|
||||
import pisi
|
||||
|
||||
class InstallDBTestCase(testcase.TestCase):
|
||||
@@ -69,7 +69,7 @@ class InstallDBTestCase(testcase.TestCase):
|
||||
pisi.api.install(["ctorrent"])
|
||||
self.installdb = pisi.db.installdb.InstallDB()
|
||||
revdeps = self.installdb.get_rev_deps("openssl")
|
||||
assert set(["ctorrent", "curl"]) == set(map(lambda x:x[0], revdeps))
|
||||
assert set(["ctorrent", "curl"]) == set([x[0] for x in revdeps])
|
||||
|
||||
def testAddRemovePackage(self):
|
||||
pisi.api.install(["ctorrent"])
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
# Please read the COPYING file.
|
||||
#
|
||||
|
||||
import testcase
|
||||
from . import testcase
|
||||
import pisi.db.itembyrepo
|
||||
|
||||
class TestDB:
|
||||
|
||||
@@ -26,12 +26,12 @@ class LazyDBTestCase(unittest.TestCase):
|
||||
def testDatabaseMethodForcingInit(self):
|
||||
db = TestDB()
|
||||
assert db.getTestField()
|
||||
assert db.__dict__.has_key("testfield")
|
||||
assert "testfield" in db.__dict__
|
||||
db._delete()
|
||||
|
||||
def testDatabaseWithoutInit(self):
|
||||
db = TestDB()
|
||||
assert not db.__dict__.has_key("testfield")
|
||||
assert "testfield" not in db.__dict__
|
||||
db._delete()
|
||||
|
||||
def testSingletonBehaviour(self):
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
# Please read the COPYING file.
|
||||
#
|
||||
|
||||
import testcase
|
||||
from . import testcase
|
||||
import pisi
|
||||
|
||||
class PackageDBTestCase(testcase.TestCase):
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
# Please read the COPYING file.
|
||||
#
|
||||
|
||||
import testcase
|
||||
from . import testcase
|
||||
import pisi
|
||||
|
||||
class RepoDBTestCase(testcase.TestCase):
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
# Please read the COPYING file.
|
||||
#
|
||||
|
||||
import testcase
|
||||
from . import testcase
|
||||
import pisi
|
||||
|
||||
class SourceDBTestCase(testcase.TestCase):
|
||||
|
||||
Reference in New Issue
Block a user