Skip to content

Commit

Permalink
Merge branch 'master' into docs
Browse files Browse the repository at this point in the history
  • Loading branch information
airstandley authored Jan 31, 2020
2 parents bfbf661 + 32b7bea commit 020b970
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion flask_rebar/swagger_generation/swagger_generator_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class SwaggerV2Generator(SwaggerGenerator):

def __init__(
self,
host="swag.com",
host="localhost",
schemes=(),
consumes=("application/json",),
produces=("application/json",),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_foos():

EXPECTED_SWAGGER_V2 = {
"swagger": "2.0",
"host": "swag.com",
"host": "localhost",
"consumes": ["application/json"],
"produces": ["application/json"],
"schemes": [],
Expand Down
2 changes: 1 addition & 1 deletion tests/swagger_generation/registries/legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def tagged_foos():

EXPECTED_SWAGGER_V2 = {
"swagger": "2.0",
"host": "swag.com",
"host": "localhost",
"consumes": ["application/json"],
"produces": ["application/json"],
"schemes": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def tagged_foos():

EXPECTED_SWAGGER_V2 = {
"swagger": "2.0",
"host": "swag.com",
"host": "localhost",
"consumes": ["application/json"],
"produces": ["application/json"],
"schemes": [],
Expand Down
2 changes: 1 addition & 1 deletion tests/swagger_generation/test_swagger_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def _assert_dicts_equal(a, b):


def test_swagger_v2_generator_non_registry_parameters():
host = "swag.com"
host = "localhost"
schemes = ["http"]
consumes = ["application/json"]
produces = ["application/json"]
Expand Down

0 comments on commit 020b970

Please sign in to comment.