user/path test: fixes

This commit is contained in:
Peter Bieringer
2026-04-22 21:57:11 +02:00
parent 4b15e4b432
commit 8babd65ae8
3 changed files with 6 additions and 16 deletions

View File

@@ -335,7 +335,7 @@ class TestBaseAuthRequests(BaseTest):
def test_htpasswd_whitespace_user(self) -> None:
for user in (" tmp", "tmp ", " tmp "):
if not pathutils.path_supports_trailing_whitespace(self.colpath) and (user.endswith(' ') or user.startswith(' ')):
if not pathutils.path_supports_trailing_whitespace(self.colpath) and user.endswith(' '):
check = 401
else:
check = 207