File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -229,18 +229,18 @@ def test_paths_construction(self):
229
229
assert 'post' in example_operations
230
230
231
231
def test_prefixed_paths_construction (self ):
232
- """Construction of the `paths` key with a common prefix."""
232
+ """Construction of the `paths` key maintains a common prefix."""
233
233
patterns = [
234
- url (r'^api/ v1/example/?$' , views .ExampleListView .as_view ()),
235
- url (r'^api/ v1/example/{pk}/?$' , views .ExampleDetailView .as_view ()),
234
+ url (r'^v1/example/?$' , views .ExampleListView .as_view ()),
235
+ url (r'^v1/example/{pk}/?$' , views .ExampleDetailView .as_view ()),
236
236
]
237
237
generator = SchemaGenerator (patterns = patterns )
238
238
generator ._initialise_endpoints ()
239
239
240
240
paths = generator .get_paths ()
241
241
242
- assert '/example/' in paths
243
- assert '/example/{id}/' in paths
242
+ assert '/v1/ example/' in paths
243
+ assert '/v1/ example/{id}/' in paths
244
244
245
245
def test_schema_construction (self ):
246
246
"""Construction of the top level dictionary."""
You can’t perform that action at this time.
0 commit comments