feat(testhttp): testing done python is faster for simple http get requests with only 1 endpoint

This commit is contained in:
darkicewolf50
2024-11-26 20:32:58 +00:00
parent fa037fdb29
commit 403558ecb5
3 changed files with 23 additions and 2 deletions

View File

@ -7,8 +7,11 @@ from django.http import HttpResponse
# Function to generate the response
def send_funct():
to_send = {
"body": "Hello this is a test"
ymlschedule = {"message": False}
to_send = {
"statusCode": 200,
"isBase64ENcoded": "false",
"body": json.dumps(ymlschedule)
}
return json.dumps(to_send)