From 8baafd6fa7d6c6a47b3ceb9d996d085b7f0a912c Mon Sep 17 00:00:00 2001 From: Pablo Tamarit Date: Mon, 18 Mar 2024 13:08:37 +0100 Subject: [PATCH] tests: check existing username case-insensitive --- tests/test_views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_views.py b/tests/test_views.py index ac5fb7d..d2ba093 100644 --- a/tests/test_views.py +++ b/tests/test_views.py @@ -180,12 +180,12 @@ def test_profile_name_exists(app): profile_url, data=prefix( "profile", - dict(username="existingname", full_name="Valid Name", affiliations=""), + dict(username="ExistingName", full_name="Valid Name", affiliations=""), ), ) assert error_msg not in resp.get_data(as_text=True) - # Create another user and try setting username to same as above user. + # Create another user and try setting username to same as above user with a different case. with app.test_client() as client: sign_up(app, client) login(app, client) @@ -197,7 +197,7 @@ def test_profile_name_exists(app): data=prefix( "profile", dict( - username="existingname", full_name="Another name", affiliations="" + username="eXISTINGnAME", full_name="Another name", affiliations="" ), ), follow_redirects=True,