Skip to content

Commit 73f4331

Browse files
author
Ryan P Kilby
committed
Fixup schema test
1 parent 65b4bf6 commit 73f4331

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

880880
generator = SchemaGenerator(title='Naming Colisions', patterns=patterns)
881881
schema = generator.get_schema()
882-
desc = schema['detail_0'].description # not important here
882+
883+
# note important here
884+
desc_0 = schema['detail']['detail_export'].description
885+
desc_1 = schema['detail_0'].description
883886

884887
expected = coreapi.Document(
885888
url='',
@@ -889,12 +892,12 @@ def test_from_router(self):
889892
'detail_export': coreapi.Link(
890893
url='/from-routercollision/detail/export/',
891894
action='get',
892-
description=desc)
895+
description=desc_0)
893896
},
894897
'detail_0': coreapi.Link(
895898
url='/from-routercollision/detail/',
896899
action='get',
897-
description=desc
900+
description=desc_1
898901
)
899902
}
900903
)

0 commit comments

Comments
 (0)