From 0e3501b2072823d670dce6e9341d27f4a944d2aa Mon Sep 17 00:00:00 2001 From: Connor Nelson Date: Thu, 7 Dec 2023 11:18:07 -0700 Subject: [PATCH] Fix data parameter in register API call --- test/test_running.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_running.py b/test/test_running.py index 3f4748306..e277f4df7 100644 --- a/test/test_running.py +++ b/test/test_running.py @@ -47,7 +47,7 @@ def parse_csrf_token(text): def create_user(name, email, password): session = requests.Session() - response = session.post(f"{PROTO}://{HOST}/register", params=dict(name=name, email=email, password=password)) + response = session.post(f"{PROTO}://{HOST}/register", data=dict(name=name, email=email, password=password)) assert response.status_code == 302, f"Expected status code 302, but got {response.status_code}" return session