From 05dc9f72294c7a989620e37ce32796985898f7e6 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Mon, 17 May 2021 16:16:52 +0900 Subject: [PATCH] Update test --- backend/api/tests/api/test_document.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/api/tests/api/test_document.py b/backend/api/tests/api/test_document.py index 2ec83d95..3fd4242e 100644 --- a/backend/api/tests/api/test_document.py +++ b/backend/api/tests/api/test_document.py @@ -12,7 +12,7 @@ class TestDocumentListAPI(CRUDMixin): self.non_member = make_user() make_doc(self.project.item) self.data = {'text': 'example'} - self.url = reverse(viewname='data_list', args=[self.project.item.id]) + self.url = reverse(viewname='example_list', args=[self.project.item.id]) def test_allows_project_member_to_list_docs(self): for member in self.project.users: @@ -47,7 +47,7 @@ class TestDocumentDetail(CRUDMixin): self.non_member = make_user() doc = make_doc(self.project.item) self.data = {'text': 'example'} - self.url = reverse(viewname='data_detail', args=[self.project.item.id, doc.id]) + self.url = reverse(viewname='example_detail', args=[self.project.item.id, doc.id]) def test_allows_project_member_to_get_doc(self): for member in self.project.users: