6
from testutils import setup_test_env
4
from tests.utils import (
9
11
from softwarecenter.enums import PkgStates
10
12
from softwarecenter.db.debfile import DebFileApplication, DebFileOpenError
11
from softwarecenter.testutils import get_test_db
13
DEBFILE_PATH = './data/test_debs/gdebi-test9.deb'
14
DEBFILE_DIR = os.path.join(DATA_DIR, 'test_debs')
16
DEBFILE_PATH = os.path.join(DEBFILE_DIR, 'gdebi-test9.deb')
14
17
DEBFILE_NAME = 'gdebi-test9'
15
18
DEBFILE_DESCRIPTION = ' provides/conflicts against "nvidia-glx"'
16
19
DEBFILE_SUMMARY = 'testpackage for gdebi - provides/conflicts against real pkg'
17
20
DEBFILE_VERSION = '1.0'
18
21
DEBFILE_WARNING = 'Only install this file if you trust the origin.'
20
DEBFILE_PATH_NOTFOUND = './data/test_debs/notfound.deb'
21
DEBFILE_PATH_NOTADEB = './data/notadeb.txt'
22
DEBFILE_PATH_CORRUPT = './data/test_debs/corrupt.deb'
23
DEBFILE_NOT_INSTALLABLE = './data/test_debs/gdebi-test1.deb'
23
DEBFILE_PATH_NOTFOUND = os.path.join(DEBFILE_DIR, 'notfound.deb')
24
DEBFILE_PATH_NOTADEB = os.path.join(DATA_DIR, 'notadeb.txt')
25
DEBFILE_PATH_CORRUPT = os.path.join(DEBFILE_DIR, 'corrupt.deb')
26
DEBFILE_NOT_INSTALLABLE = os.path.join(DEBFILE_DIR, 'gdebi-test1.deb')
26
29
class TestDebFileApplication(unittest.TestCase):