-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added swagger_merge_with_file parameter.
Allows redefine the swagger description in the code for needed endpoints
- Loading branch information
Showing
6 changed files
with
225 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,3 +132,6 @@ ENV/ | |
|
||
# Pycharm | ||
.idea/ | ||
|
||
# pytest | ||
.pytest_cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from os.path import ( | ||
abspath, | ||
dirname, | ||
join, | ||
) | ||
|
||
import yaml | ||
import pytest | ||
|
||
|
||
@pytest.fixture | ||
def swagger_file(): | ||
tests_path = abspath(join(dirname(__file__))) | ||
return join(tests_path, "data", "example_swagger.yaml") | ||
|
||
|
||
@pytest.fixture | ||
def swagger_info(): | ||
filename = abspath(join(dirname(__file__))) + "/data/example_swagger.yaml" | ||
return yaml.load(open(filename).read()) | ||
|
||
|
Oops, something went wrong.