Skip to content

Commit

Permalink
no 'PUT' at /content -- update test
Browse files Browse the repository at this point in the history
  • Loading branch information
goose-life committed Dec 12, 2024
1 parent 6af0570 commit 284dbce
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions indigo_api/tests/test_document_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,6 @@ def test_update_content(self):
assert_equal(response.status_code, 200)
assert_in('<p>in γνωρίζω body</p>', 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('<p>also γνωρίζω the body</p>', 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')})
Expand Down

0 comments on commit 284dbce

Please sign in to comment.