Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/schemas/test_openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ def test_paths_construction(self):
generator = SchemaGenerator(patterns=patterns)
generator._initialise_endpoints()

paths = generator.get_paths()
paths = generator.get_schema()["paths"]

assert '/example/' in paths
example_operations = paths['/example/']
Expand All @@ -676,7 +676,7 @@ def test_prefixed_paths_construction(self):
generator = SchemaGenerator(patterns=patterns)
generator._initialise_endpoints()

paths = generator.get_paths()
paths = generator.get_schema()["paths"]

assert '/v1/example/' in paths
assert '/v1/example/{id}/' in paths
Expand All @@ -689,7 +689,7 @@ def test_mount_url_prefixed_to_paths(self):
generator = SchemaGenerator(patterns=patterns, url='/api')
generator._initialise_endpoints()

paths = generator.get_paths()
paths = generator.get_schema()["paths"]

assert '/api/example/' in paths
assert '/api/example/{id}/' in paths
Expand Down