mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-03 12:00:12 +03:00
fixed test
This commit is contained in:
parent
1a451494fa
commit
e3f9e49e7d
|
@ -40,7 +40,7 @@ class CustomNameResourceInstance(APIView):
|
||||||
|
|
||||||
|
|
||||||
class CustomNameByVariableResourceInstance(APIView):
|
class CustomNameByVariableResourceInstance(APIView):
|
||||||
view_name = "Foo"
|
view_name = "Bar"
|
||||||
|
|
||||||
|
|
||||||
class ResourceViewSet(ModelViewSet):
|
class ResourceViewSet(ModelViewSet):
|
||||||
|
@ -94,11 +94,11 @@ class BreadcrumbTests(TestCase):
|
||||||
]
|
]
|
||||||
|
|
||||||
def test_resource_instance_customnamebyvar_breadcrumbs(self):
|
def test_resource_instance_customnamebyvar_breadcrumbs(self):
|
||||||
url = '/resource/customname'
|
url = '/resource/customnamebyvar'
|
||||||
assert get_breadcrumbs(url) == [
|
assert get_breadcrumbs(url) == [
|
||||||
('Root', '/'),
|
('Root', '/'),
|
||||||
('Resource Root', '/resource/'),
|
('Resource Root', '/resource/'),
|
||||||
('Foo', '/resource/customname')
|
('Bar', '/resource/customnamebyvar')
|
||||||
]
|
]
|
||||||
|
|
||||||
def test_nested_resource_breadcrumbs(self):
|
def test_nested_resource_breadcrumbs(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user