aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPriit Laes <plaes@plaes.org>2010-07-31 14:08:18 +0300
committerPriit Laes <plaes@plaes.org>2010-07-31 14:08:18 +0300
commitc08c484e59ef5a5e93e9514ad4ee7b9b79c25235 (patch)
treea1ea205513b4abb3f2e760f5aa96690f9e93cf04 /grumpy/testsuite
parentInit Ebuild directly using pkgcore's ebuild_src (diff)
downloadgsoc2010-grumpy-c08c484e59ef5a5e93e9514ad4ee7b9b79c25235.tar.gz
gsoc2010-grumpy-c08c484e59ef5a5e93e9514ad4ee7b9b79c25235.tar.bz2
gsoc2010-grumpy-c08c484e59ef5a5e93e9514ad4ee7b9b79c25235.zip
Show full version (including revision) in web frontend
Diffstat (limited to 'grumpy/testsuite')
-rw-r--r--grumpy/testsuite/pkgmodel.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/grumpy/testsuite/pkgmodel.py b/grumpy/testsuite/pkgmodel.py
index c59ecd4..63f48b8 100644
--- a/grumpy/testsuite/pkgmodel.py
+++ b/grumpy/testsuite/pkgmodel.py
@@ -36,10 +36,11 @@ class PkgModelTestCase(GrumpyTestCase):
p.ebuilds.append(Ebuild(self.get_pkg('app-misc/testpkg-1.0-r4', data)))
self.db.session.add(p)
self.db.session.commit()
+ return p
def test_ebuild_parsing(self):
with self.app.test_request_context():
- self.make_package_and_ebuilds()
+ p = self.make_package_and_ebuilds()
e = Ebuild.query.first()
assert e.iuse == 'test,flags,split-flag'
assert e.iuse_neg == 'negative'
@@ -48,6 +49,7 @@ class PkgModelTestCase(GrumpyTestCase):
assert e.eapi == 0
assert e.slot == '1.1'
assert e.pcv == 'testpkg/app-misc-1.0-r3'
+ assert e.package == p
def test_category_and_package_model(self):
with self.app.test_request_context():