@@ -49,6 +49,8 @@ def test_index_view_with_endpoints(self):
49
49
# The view "OrganisationErroredView" (organisations/(?P<slug>[\w-]+)/errored/) should contain an error.
50
50
self .assertEqual (str (response .context ["endpoints" ][9 ].errors ), "'test_value'" )
51
51
52
+ self .assertEqual (response .context ["endpoints" ][14 ].path , "/another-login/" )
53
+
52
54
def test_index_search_with_endpoints (self ):
53
55
response = self .client .get ("%s?search=reset-password" % reverse ("drfdocs" ))
54
56
@@ -75,8 +77,8 @@ def test_model_viewset(self):
75
77
76
78
self .assertEqual (response .context ["endpoints" ][10 ].path , '/organisations/<slug>/' )
77
79
self .assertEqual (response .context ['endpoints' ][6 ].fields [2 ]['to_many_relation' ], True )
78
- self .assertEqual (response .context ["endpoints" ][11 ].path , '/organisation-model-viewsets/' )
79
- self .assertEqual (response .context ["endpoints" ][12 ].path , '/organisation-model-viewsets/<pk>/' )
80
+ self .assertEqual (response .context ["endpoints" ][11 ].path , '/router/ organisation-model-viewsets/' )
81
+ self .assertEqual (response .context ["endpoints" ][12 ].path , '/router/ organisation-model-viewsets/<pk>/' )
80
82
self .assertEqual (response .context ["endpoints" ][11 ].allowed_methods , ['GET' , 'POST' , 'OPTIONS' ])
81
83
self .assertEqual (response .context ["endpoints" ][12 ].allowed_methods , ['GET' , 'PUT' , 'PATCH' , 'DELETE' , 'OPTIONS' ])
82
84
self .assertEqual (response .context ["endpoints" ][13 ].allowed_methods , ['POST' , 'OPTIONS' ])
0 commit comments