diff --git a/restclients_core/util/mock.py b/restclients_core/util/mock.py index d65be42..5f441cb 100644 --- a/restclients_core/util/mock.py +++ b/restclients_core/util/mock.py @@ -32,10 +32,13 @@ def load_resource_from_path(resource_dir, service_name, # attempt to open query permutations even on success # so that if there are multiple files we throw an exception if "?" in url: - handle = attempt_open_query_permutations(url, orig_file_path, False) + handle = attempt_open_query_permutations(url, orig_file_path, + False) if "?" in url: - header_handle = attempt_open_query_permutations(url, orig_file_path, True) + header_handle = attempt_open_query_permutations(url, + orig_file_path, + True) if handle is None and header_handle is None: return None @@ -73,7 +76,6 @@ def load_resource_from_path(resource_dir, service_name, except IOError: pass - return response @@ -172,4 +174,4 @@ def attempt_open_query_permutations(url, orig_file_path, is_header_file): def _compare_file_name(orig_file_path, directory, filename): - return len(unquote(orig_file_path)) - len(directory) == len(filename) \ No newline at end of file + return len(unquote(orig_file_path)) - len(directory) == len(filename)