From 00b619d892ebe460536ee626411c53c98b8bb2df Mon Sep 17 00:00:00 2001 From: Yarne Coppens Date: Wed, 31 Jul 2024 15:16:05 +0200 Subject: [PATCH] Created an assert test for successful login --- bgg_connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgg_connection.py b/bgg_connection.py index 02a02be..422eb6d 100644 --- a/bgg_connection.py +++ b/bgg_connection.py @@ -72,6 +72,6 @@ def get_authenticated_bgg_session(username: str, password: str) -> requests.Sess authenticated_session = requests.Session() login_response = authenticated_session.post(login_url, json=post_data) - print(login_response.status_code) + assert login_response.status_code == 204 return authenticated_session \ No newline at end of file