File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ def test_workflow(self):
21
21
user = self .contract .create_user ()
22
22
23
23
# create a contribution
24
- response = app .post (self .url_collection , {'user_id ' : user .id })
24
+ response = app .post (self .url_collection , {'contributor_id ' : user .id })
25
25
self .assertEqual (response .json ['contributor' ]['id' ], user .id )
26
26
contribution_id = response .json ['id' ]
27
27
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def collection_post(request):
27
27
28
28
:returns: information about the new contribution
29
29
"""
30
- user_id = request .POST ['user_id ' ]
30
+ user_id = request .POST ['contributor_id ' ]
31
31
user = request .contract .get_user (user_id )
32
32
contribution = request .contract .create_contribution (user = user )
33
33
return contribution_to_dict (contribution , request )
You can’t perform that action at this time.
0 commit comments