Browse Source

Update test

pull/1370/head
Hironsan 3 years ago
parent
commit
05dc9f7229
1 changed files with 2 additions and 2 deletions
  1. 4
      backend/api/tests/api/test_document.py

4
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:

Loading…
Cancel
Save