Skip to content

Commit 87ba917

Browse files
author
Ryan P Kilby
committed
Fixup schema test
1 parent 046bf8a commit 87ba917

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
@@ -949,7 +949,10 @@ def test_from_router(self):
949949

950950
generator = SchemaGenerator(title='Naming Colisions', patterns=patterns)
951951
schema = generator.get_schema()
952-
desc = schema['detail_0'].description # not important here
952+
953+
# not important here
954+
desc_0 = schema['detail']['detail_export'].description
955+
desc_1 = schema['detail_0'].description
953956

954957
expected = coreapi.Document(
955958
url='',
@@ -959,12 +962,12 @@ def test_from_router(self):
959962
'detail_export': coreapi.Link(
960963
url='/from-routercollision/detail/export/',
961964
action='get',
962-
description=desc)
965+
description=desc_0)
963966
},
964967
'detail_0': coreapi.Link(
965968
url='/from-routercollision/detail/',
966969
action='get',
967-
description=desc
970+
description=desc_1
968971
)
969972
}
970973
)

0 commit comments

Comments
 (0)