From 3e38a649f3d4596972e3b6044e840f4867104a7a Mon Sep 17 00:00:00 2001 From: Om Khade <63163047+khadeom@users.noreply.github.com> Date: Wed, 11 Jan 2023 19:15:31 +0530 Subject: [PATCH] fixed: test_create request that was failing test_create was failing as Post Request was available at URL /polls/ --- docs/testing-and-ci.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/testing-and-ci.rst b/docs/testing-and-ci.rst index b896cfd..9aa4a4c 100644 --- a/docs/testing-and-ci.rst +++ b/docs/testing-and-ci.rst @@ -37,7 +37,7 @@ Lets add a test for the polls list. def setUp(self): self.factory = APIRequestFactory() self.view = apiviews.PollViewSet.as_view({'get': 'list'}) - self.uri = '/polls/' + self.uri = '/polls/polls/' def test_list(self): request = self.factory.get(self.uri)