]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
tests: Use project.id in requests, not object
authorStephen Finucane <stephen@that.guru>
Fri, 7 Dec 2018 11:45:46 +0000 (11:45 +0000)
committerStephen Finucane <stephen@that.guru>
Sat, 22 Dec 2018 17:19:06 +0000 (17:19 +0000)
The object is not serializable.

Signed-off-by: Stephen Finucane <stephen@that.guru>
patchwork/tests/api/test_patch.py

index 7ffc1780525d9889a1d29c7711e3602dab245997..b501392c6aef3d6360fd09b20053618da81c14f2 100644 (file)
@@ -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',