Skip to content

Commit 1389545

Browse files
committed
Call get_schema(), rather than sub-method in schema tests.
1 parent 6ad77b3 commit 1389545

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/schemas/test_openapi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ def test_paths_construction(self):
659659
generator = SchemaGenerator(patterns=patterns)
660660
generator._initialise_endpoints()
661661

662-
paths = generator.get_paths()
662+
paths = generator.get_schema()["paths"]
663663

664664
assert '/example/' in paths
665665
example_operations = paths['/example/']
@@ -676,7 +676,7 @@ def test_prefixed_paths_construction(self):
676676
generator = SchemaGenerator(patterns=patterns)
677677
generator._initialise_endpoints()
678678

679-
paths = generator.get_paths()
679+
paths = generator.get_schema()["paths"]
680680

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

692-
paths = generator.get_paths()
692+
paths = generator.get_schema()["paths"]
693693

694694
assert '/api/example/' in paths
695695
assert '/api/example/{id}/' in paths

0 commit comments

Comments
 (0)