Commit 2270bb4e authored by axiiom's avatar axiiom

lmao another typo kill me

parent 4afd3587
......@@ -12,7 +12,7 @@ CREATED = Code(201, "Created")
# redirection
MOVED = Code(301, "Moved Permanently")
REDIRECT = Code(308, "Permanent Redirect")
REDIRECT = Code(302, "Permanent Redirect")
# client errors
BAD_REQUEST = Code(400, "Bad Request")
......@@ -28,7 +28,7 @@ codes = {
200: SUCCESS,
201: CREATED,
301: MOVED,
308: REDIRECT,
302: REDIRECT,
400: BAD_REQUEST,
401: UNAUTHORIZED,
403: FORBIDDEN,
......
......@@ -59,6 +59,7 @@ def setup(test_num):
data = requests.get(f"http://localhost:5000/{endpoint}")
expected = [SUCCESS, REDIRECT]
print(data.history[0].status_code)
actual = [ codes[data.status_code], codes[data.history[0].status_code] ]
return get_status(expected, actual)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment