Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 21, 2024
1 parent fc7a957 commit af4fc56
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions mock_api/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@app.route("/", defaults={"path": ""}, methods=["GET", "POST"])
@app.route("/<path:path>", methods=["GET", "POST"])
def catch_all(path):
print(f"{path = }")
print(f"{path=}")
return jsonify({"path": path})


Expand Down Expand Up @@ -36,7 +36,7 @@ def banks():
},
]
}
print(f"{banks =}")
print(f"{banks=}")
return jsonify(banks)


Expand All @@ -50,36 +50,36 @@ def predict():
"new_destinatary_max_amount": 100000,
}

print(f"{prediction = }")
print(f"{prediction=}")
return jsonify(prediction)


def log_data(sender, response, **extra):
print("--------------------")
print(f"{request.host = }")
print(f"{request.host_url = }")
print(f"{request.base_url = }")
print(f"{request.full_path = }")
print(f"{request.host=}")
print(f"{request.host_url=}")
print(f"{request.base_url=}")
print(f"{request.full_path=}")
print("--------------------")
print(f"{request.content_encoding = }")
print(f"{request.content_length = }")
print(f"{request.content_type = }")
print(f"{request.is_json = }")
print(f"{request.origin = }")
print(f"{request.method = }")
print(f"{request.content_encoding=}")
print(f"{request.content_length=}")
print(f"{request.content_type=}")
print(f"{request.is_json=}")
print(f"{request.origin=}")
print(f"{request.method=}")
print("--------------------")
print(f"{request.args = }")
print(f"{request.cookies = }")
print(f"{request.data = }")
print(f"{request.form = }")
print(f"{request.args=}")
print(f"{request.cookies=}")
print(f"{request.data=}")
print(f"{request.form=}")
# if request.is_json:
# print(f"{request.json() = }")
print(f"{request.query_string = }")
print(f"{request.headers = }")
print(f"{request.query_string=}")
print(f"{request.headers=}")
print("--------------------")
print(f"{sender = }")
print(f"{response = }")
print(f"{extra = }")
print(f"{sender=}")
print(f"{response=}")
print(f"{extra=}")


request_finished.connect(log_data, app)

0 comments on commit af4fc56

Please sign in to comment.