We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49128db commit 6021bd3Copy full SHA for 6021bd3
example/tests/test_views.py
@@ -135,6 +135,13 @@ def test_patch_one_to_many_relationship(self):
135
response = self.client.get(url)
136
assert response.data == request_data['data']
137
138
+ response = self.client.patch(url, data=request_data)
139
+ assert response.status_code == 200, response.content.decode()
140
+ assert response.data == request_data['data']
141
+
142
+ response = self.client.get(url)
143
144
145
def test_patch_many_to_many_relationship(self):
146
url = '/entries/{}/relationships/authors'.format(self.first_entry.id)
147
request_data = {
0 commit comments