Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed Apr 11, 2023
1 parent 1daa60d commit d4f2545
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/datagateway_api/test_swagger_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,17 @@ def test_swagger_ui(self, test_config_swagger, api_type, request):
test_client = test_app.test_client()

test_response = test_client.get(
f"{test_config_swagger.url_prefix}{test_config_swagger[api_type].extension}", # noqa: B950
f"{test_config_swagger.url_prefix}{test_config_swagger[api_type].extension}", # noqa: B950
)

test_response_string = test_response.get_data(as_text=True)

assert f"{api_name} OpenAPI Spec" in test_response_string
assert (
f"{test_config_swagger.url_prefix}{test_config_swagger[api_type].extension}/swagger-ui" # noqa: B950
f"{test_config_swagger.url_prefix}{test_config_swagger[api_type].extension}/swagger-ui" # noqa: B950
in test_response_string
)
assert (
f"{test_config_swagger.url_prefix}/{api_type.replace('_', '-')}/openapi.json" # noqa: B950
f"{test_config_swagger.url_prefix}/{api_type.replace('_', '-')}/openapi.json" # noqa: B950
in test_response_string
)

0 comments on commit d4f2545

Please sign in to comment.