Remove fake base-runtime module from DB and old resolve_profiles method because they are not used anymore. Fix the tests to work with remove fake base-runtime.

This commit is contained in:
Jan Kaluza
2017-01-10 15:58:26 +01:00
parent dda47acab7
commit 0f797c2917
6 changed files with 38 additions and 189 deletions

View File

@@ -33,16 +33,4 @@ class TestModels(unittest.TestCase):
def setUp(self):
init_data()
def test_resolve_refs(self):
expected = set([
'shadow-utils',
'fedora-release',
'redhat-rpm-config',
'rpm-build',
'fedpkg-minimal',
'gnupg2',
'bash',
])
build = db.session.query(models.ModuleBuild).filter_by(name='testmodule').one()
result = build.resolve_profiles(db.session, 'srpm-buildroot')
eq_(result, expected)