Skip to content

Commit eafe0cc

Browse files
author
Ryan P Kilby
committed
Fixup schema test
1 parent 89aa557 commit eafe0cc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/test_schemas.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,10 @@ def test_from_router(self):
843843

844844
generator = SchemaGenerator(title='Naming Colisions', patterns=patterns)
845845
schema = generator.get_schema()
846-
desc = schema['detail_0'].description # not important here
846+
847+
# note important here
848+
desc_0 = schema['detail']['detail_export'].description
849+
desc_1 = schema['detail_0'].description
847850

848851
expected = coreapi.Document(
849852
url='',
@@ -853,12 +856,12 @@ def test_from_router(self):
853856
'detail_export': coreapi.Link(
854857
url='/from-routercollision/detail/export/',
855858
action='get',
856-
description=desc)
859+
description=desc_0)
857860
},
858861
'detail_0': coreapi.Link(
859862
url='/from-routercollision/detail/',
860863
action='get',
861-
description=desc
864+
description=desc_1
862865
)
863866
}
864867
)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy