mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-03 12:00:12 +03:00
Fixup schema test
This commit is contained in:
parent
fed7616013
commit
23447b0486
|
@ -949,7 +949,10 @@ class TestURLNamingCollisions(TestCase):
|
||||||
|
|
||||||
generator = SchemaGenerator(title='Naming Colisions', patterns=patterns)
|
generator = SchemaGenerator(title='Naming Colisions', patterns=patterns)
|
||||||
schema = generator.get_schema()
|
schema = generator.get_schema()
|
||||||
desc = schema['detail_0'].description # not important here
|
|
||||||
|
# not important here
|
||||||
|
desc_0 = schema['detail']['detail_export'].description
|
||||||
|
desc_1 = schema['detail_0'].description
|
||||||
|
|
||||||
expected = coreapi.Document(
|
expected = coreapi.Document(
|
||||||
url='',
|
url='',
|
||||||
|
@ -959,12 +962,12 @@ class TestURLNamingCollisions(TestCase):
|
||||||
'detail_export': coreapi.Link(
|
'detail_export': coreapi.Link(
|
||||||
url='/from-routercollision/detail/export/',
|
url='/from-routercollision/detail/export/',
|
||||||
action='get',
|
action='get',
|
||||||
description=desc)
|
description=desc_0)
|
||||||
},
|
},
|
||||||
'detail_0': coreapi.Link(
|
'detail_0': coreapi.Link(
|
||||||
url='/from-routercollision/detail/',
|
url='/from-routercollision/detail/',
|
||||||
action='get',
|
action='get',
|
||||||
description=desc
|
description=desc_1
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user