mirror of
https://github.com/UofCBaja/BajaCloud.git
synced 2025-06-15 13:14:17 -06:00
fix (testhttp): fixed linting errors
This commit is contained in:
parent
ba705966e9
commit
1f244d4d62
@ -5,12 +5,12 @@ import timeit
|
|||||||
def BenchMarkServer():
|
def BenchMarkServer():
|
||||||
rawRes = requests.get("http://localhost:8080/getAppointments")
|
rawRes = requests.get("http://localhost:8080/getAppointments")
|
||||||
res = json.loads(rawRes.text)
|
res = json.loads(rawRes.text)
|
||||||
#print(json.dumps(res, indent=1))
|
print(json.dumps(res, indent=1))
|
||||||
|
|
||||||
def BenchMarkDjango():
|
def BenchMarkDjango():
|
||||||
rawRes = requests.get("http://127.0.0.1:8000/getAppointments")
|
rawRes = requests.get("http://127.0.0.1:8000/getAppointments")
|
||||||
res = json.loads(rawRes.text)
|
res = json.loads(rawRes.text)
|
||||||
#print(json.dumps(res, indent=1))
|
print(json.dumps(res, indent=1))
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
test = 1
|
test = 1
|
||||||
@ -19,7 +19,7 @@ if __name__ == "__main__":
|
|||||||
# pythonTime = timeit.timeit(stmt=BenchMarkServer, number=10)
|
# pythonTime = timeit.timeit(stmt=BenchMarkServer, number=10)
|
||||||
print(f"FastAPI: {djangoTime}\nPython: ")
|
print(f"FastAPI: {djangoTime}\nPython: ")
|
||||||
|
|
||||||
reqbody = {
|
# reqbody = {
|
||||||
"body": {"message": "hello"}
|
# "body": {"message": "hello"}
|
||||||
}
|
# }
|
||||||
# rawRes = requests.post("http://localhost:8000/SelectInterview", reqbody)
|
# rawRes = requests.post("http://localhost:8000/SelectInterview", reqbody)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user