Fix indentation

pull/58/head
alufers 2 years ago
parent 0625d44efc
commit 78112c5e91

@ -46,7 +46,7 @@ class HarFlowWrapper:
return self.flow["request"]["url"]
return None
def get_method(self):
def get_method(self):
return self.flow["request"]["method"]
def get_request_headers(self):

@ -81,8 +81,8 @@ def url_to_params(url, path_template):
def request_to_headers(headers: dict[str, List[Any]], add_example: bool = False):
"""When given an url and its path template, generates the parameters
section of the request."""
"""When given an url and its path template, generates the parameters section of the
request."""
params = []
if headers:
for key in headers:

@ -23,8 +23,8 @@ def get_nested_key(obj: Any, path: str) -> Any:
def mitmproxy2swagger_e2e_test(
input_file: str, url_prefix: str, extra_args: Optional[List[str]] = None
) -> Any:
"""Runs mitmproxy2swagger on the given input file twice, and returns the
detected endpoints."""
"""Runs mitmproxy2swagger on the given input file twice, and returns the detected
endpoints."""
yaml_tmp_path = tempfile.mktemp(suffix=".yaml", prefix="sklep.lisek.")
main(
[

Loading…
Cancel
Save