Merge lp:~canonical-isd-hackers/canonical-identity-provider/fix-functional-tests into lp:canonical-identity-provider/release

Proposed by Ricardo Kirkner
Status: Merged
Approved by: David Owen
Approved revision: no longer in the source branch.
Merged at revision: 136
Proposed branch: lp:~canonical-isd-hackers/canonical-identity-provider/fix-functional-tests
Merge into: lp:canonical-identity-provider/release
Diff against target: 38 lines (+9/-1)
2 files modified
identityprovider/fixtures/test.json (+5/-0)
payload/__init__.py (+4/-1)
To merge this branch: bzr merge lp:~canonical-isd-hackers/canonical-identity-provider/fix-functional-tests
Reviewer Review Type Date Requested Status
David Owen (community) Approve
Review via email: mp+52600@code.launchpad.net

Commit message

fixed failing functional tests

Description of the change

fixed failing functional tests

To post a comment you must log in.
Revision history for this message
David Owen (dsowen) wrote :

Looks good, and tests pass locally. Let's see what the tools formerly known as Hudson thinks.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'identityprovider/fixtures/test.json'
--- identityprovider/fixtures/test.json 2010-12-20 17:48:56 +0000
+++ identityprovider/fixtures/test.json 2011-03-08 19:31:28 +0000
@@ -278,6 +278,11 @@
278 "lp_account": 12278 "lp_account": 12
279 }279 }
280 },280 },
281 {
282 "pk": "name12_oid",
283 "model": "identityprovider.lpopenididentifier",
284 "fields": {"lp_account": 12, "date_created": "2005-06-06 08:59:51"}
285 },
281 {286 {
282 "pk": 66,287 "pk": 66,
283 "model": "identityprovider.person",288 "model": "identityprovider.person",
284289
=== modified file 'payload/__init__.py'
--- payload/__init__.py 2011-03-07 18:04:15 +0000
+++ payload/__init__.py 2011-03-08 19:31:28 +0000
@@ -83,6 +83,8 @@
83 """Run the tests for hudson."""83 """Run the tests for hudson."""
84 bootstrap(hudson=True)84 bootstrap(hudson=True)
85 resetdb()85 resetdb()
86 # the functional tests depend on some data found in the fixtures
87 virtualenv('python django_project/manage.py loaddata test')
86 test(functional=True, coverage=True)88 test(functional=True, coverage=True)
8789
8890
@@ -144,7 +146,8 @@
144 with cd('django_project'):146 with cd('django_project'):
145 local("bzr branch %s .config" % CONFIG_BRANCH, capture=False)147 local("bzr branch %s .config" % CONFIG_BRANCH, capture=False)
146148
147 _create_local_cfg()149 if not os.path.exists('django_project/local.cfg'):
150 _create_local_cfg()
148151
149152
150def _create_local_cfg():153def _create_local_cfg():