diff options
author | Stephen Finucane <stephen@that.guru> | 2020-04-16 13:45:28 +0100 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2020-04-18 11:57:28 +0100 |
commit | 6bd33cbd72eacf630e603d1e5b5ce266452fc2cb (patch) | |
tree | e644c1e786310955e7817d2d143b32a3491f1f04 /patchwork/tests | |
parent | d11c8e25b982ebc9697ab725a53585781816bba1 (diff) | |
download | patchwork-6bd33cbd72eacf630e603d1e5b5ce266452fc2cb.tar patchwork-6bd33cbd72eacf630e603d1e5b5ce266452fc2cb.tar.gz |
docs: Resolve issues with 'events'
Four things to change here:
- The response is any array that can contain any type of event, not one
of them.
- The 'actor' field is nullable.
- The 'cover' field of the 'cover-created' event is an embedded cover
letter, not a string.
- The specifications for the 'current_delegate' and 'previous_delegate'
fields of the 'patch-delegated' field were apparently invalid.
Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'patchwork/tests')
-rw-r--r-- | patchwork/tests/api/test_event.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/patchwork/tests/api/test_event.py b/patchwork/tests/api/test_event.py index 54935d0..32e9936 100644 --- a/patchwork/tests/api/test_event.py +++ b/patchwork/tests/api/test_event.py @@ -115,7 +115,11 @@ class TestEventAPI(utils.APITestCase): # There should only be one self.assertEqual(1, len(resp.data)) - resp = self.client.get(self.api_url(), {'category': 'foo-bar'}) + resp = self.client.get( + self.api_url(), + {'category': 'foo-bar'}, + validate_request=False, + ) self.assertEqual(0, len(resp.data)) def test_list_filter_patch(self): |