From 284dbce252f54d4d1799117fcae6727a6e549f4f Mon Sep 17 00:00:00 2001 From: goose-life <32566441+goose-life@users.noreply.github.com> Date: Thu, 12 Dec 2024 10:15:38 +0200 Subject: [PATCH] no 'PUT' at /content -- update test --- indigo_api/tests/test_document_api.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/indigo_api/tests/test_document_api.py b/indigo_api/tests/test_document_api.py index c94d6ccf2..869a9b62c 100644 --- a/indigo_api/tests/test_document_api.py +++ b/indigo_api/tests/test_document_api.py @@ -57,18 +57,6 @@ def test_update_content(self): assert_equal(response.status_code, 200) assert_in('
in γνωρίζω body
', response.data['content']) - # also try updating the content at /content - response = self.client.put('/api/documents/%s/content' % id, {'content': document_fixture('also γνωρίζω the body')}) - assert_equal(response.status_code, 200) - revisions3 = self.client.get('/api/documents/%s/revisions' % id).data - - # ensure a revision is created - assert_not_equal(revisions2, revisions3, 'revision not created') - - response = self.client.get('/api/documents/%s/content' % id) - assert_equal(response.status_code, 200) - assert_in('also γνωρίζω the body
', response.data['content']) - def test_revert_a_revision(self): id = 1 response = self.client.patch('/api/documents/%s' % id, {'content': document_fixture('hello in there')})