From: Stephen Finucane Date: Fri, 7 Dec 2018 11:45:46 +0000 (+0000) Subject: tests: Use project.id in requests, not object X-Git-Tag: v2.2.0-rc1~196 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b21ee9f512457da50ece329940bd121d1d59bc99;p=thirdparty%2Fpatchwork.git tests: Use project.id in requests, not object The object is not serializable. Signed-off-by: Stephen Finucane --- diff --git a/patchwork/tests/api/test_patch.py b/patchwork/tests/api/test_patch.py index 7ffc1780..b501392c 100644 --- a/patchwork/tests/api/test_patch.py +++ b/patchwork/tests/api/test_patch.py @@ -203,7 +203,7 @@ class TestPatchAPI(APITestCase): """Ensure creations are rejected.""" project = create_project() patch = { - 'project': project, + 'project': project.id, 'submitter': create_person().id, 'msgid': make_msgid(), 'name': 'test-create-patch',