[Pkg-debile-commits] [debile-master] 17/126: meh
Sylvestre Ledru
sylvestre at alioth.debian.org
Mon Aug 19 14:56:07 UTC 2013
This is an automated email from the git hooks/post-receive script.
sylvestre pushed a commit to branch scan-build-html
in repository debile-master.
commit 1dc99f8e1a69ac8fac2ed174f6927ed48b130505
Author: Paul Tagliamonte <tag at pault.ag>
Date: Sat May 25 23:31:34 2013 -0400
meh
---
lucy/tests/test_lucy_source.py | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/lucy/tests/test_lucy_source.py b/lucy/tests/test_lucy_source.py
index 47d5d08..d8c6360 100644
--- a/lucy/tests/test_lucy_source.py
+++ b/lucy/tests/test_lucy_source.py
@@ -1,26 +1,25 @@
from lucy.models.source import Source
+from lucy.models.user import User
def test_basic_source():
""" Test that source routines works """
+ User(_id='joe', name='', email='', gpg='').save()
p = Source(source='fluxbox',
version='1.0',
- owner=None)
+ owner="joe")
p.save()
p = Source(source='fluxbox',
version='2.0',
- owner=None)
+ owner="joe")
p.save()
p = Source(source='frucksbox',
version='2.0',
- owner=None)
+ owner="joe")
x = p.save()
- assert len(list(Source.get_all_versions("fluxbox"))) == 2
- assert len(list(Source.get_all_versions("frucksbox"))) == 1
-
obj = Source.load(x)
assert obj['version'] == '2.0'
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-master.git
More information about the Pkg-debile-commits
mailing list