From 16a1a4d3af72c331dbd5c10e14faef5e78f8c4be Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Tue, 9 Feb 2016 19:07:24 -0400 Subject: [PATCH] Fix test test_get_document_version_content, API view return document version page OCR content not document version OCR content. --- mayan/apps/ocr/tests/test_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mayan/apps/ocr/tests/test_api.py b/mayan/apps/ocr/tests/test_api.py index 6e2ef8a01e..f72c1beebd 100644 --- a/mayan/apps/ocr/tests/test_api.py +++ b/mayan/apps/ocr/tests/test_api.py @@ -69,11 +69,11 @@ class OCRAPITestCase(APITestCase): self.assertTrue('Mayan EDMS Documentation' in content) - def test_get_document_version_content(self): + def test_get_document_version_page_content(self): response = self.client.get( reverse( 'rest_api:document-page-content-view', - args=(self.document.latest_version.pk,) + args=(self.document.latest_version.pages.first().pk,) ), )