[ckan-changes] commit/ckan: dread: [tests][xs]: Fix - postgres being strict about revisions.
Bitbucket
commits-noreply at bitbucket.org
Wed Oct 12 14:30:03 UTC 2011
1 new changeset in ckan:
http://bitbucket.org/okfn/ckan/changeset/cf1071fb5dec/
changeset: cf1071fb5dec
user: dread
date: 2011-10-12 16:29:16
summary: [tests][xs]: Fix - postgres being strict about revisions.
affected #: 1 file (-1 bytes)
--- a/ckan/tests/functional/test_admin.py Wed Oct 12 12:44:55 2011 +0100
+++ b/ckan/tests/functional/test_admin.py Wed Oct 12 15:29:16 2011 +0100
@@ -290,10 +290,10 @@
assert 'dataset/warandpeace' in response
# now check we really can purge when things are ok
+ model.repo.new_revision()
pkg = model.Package.by_name(u'annakarenina')
pkg.state = model.State.DELETED
- model.repo.new_revision()
- model.Session.commit()
+ model.repo.commit_and_remove()
response = self.app.get(url, extra_environ=as_testsysadmin)
assert 'dataset/warandpeace' in response, response
Repository URL: https://bitbucket.org/okfn/ckan/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the ckan-changes
mailing list