From 78112c5e91e95dfcf9c69174503715d9d5b7ca15 Mon Sep 17 00:00:00 2001 From: alufers Date: Tue, 6 Jun 2023 21:18:41 +0200 Subject: [PATCH] Fix indentation --- mitmproxy2swagger/har_capture_reader.py | 2 +- mitmproxy2swagger/swagger_util.py | 4 ++-- mitmproxy2swagger/testing_util.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mitmproxy2swagger/har_capture_reader.py b/mitmproxy2swagger/har_capture_reader.py index 9255a88..1a6381a 100644 --- a/mitmproxy2swagger/har_capture_reader.py +++ b/mitmproxy2swagger/har_capture_reader.py @@ -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): diff --git a/mitmproxy2swagger/swagger_util.py b/mitmproxy2swagger/swagger_util.py index 19b4793..4d50ca8 100644 --- a/mitmproxy2swagger/swagger_util.py +++ b/mitmproxy2swagger/swagger_util.py @@ -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: diff --git a/mitmproxy2swagger/testing_util.py b/mitmproxy2swagger/testing_util.py index b4273f9..6353513 100644 --- a/mitmproxy2swagger/testing_util.py +++ b/mitmproxy2swagger/testing_util.py @@ -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( [