From 8ca2eaaedb7f58483b3d3360b6c082c8a3814d37 Mon Sep 17 00:00:00 2001 From: Cedric Date: Thu, 30 May 2024 21:54:30 +0800 Subject: [PATCH] test --- app/utils.py | 6 ++---- tests/test_utils.py | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/utils.py b/app/utils.py index 08c7b15..b3f214c 100644 --- a/app/utils.py +++ b/app/utils.py @@ -538,10 +538,8 @@ def extract_form_values(request): def update_port() -> bool: """ Checks if the current platform is a Unix-based system (like Darwin or Linux). If so, returns True. - - Returns: - bool - True if running on a Unix-based system, False otherwise + :return: bool - True if running on a Unix-based system, False otherwise """ if sys.platform.lower() in ['darwin', 'linux']: return True - return False \ No newline at end of file + return False diff --git a/tests/test_utils.py b/tests/test_utils.py index e45c3a1..68c95c2 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -9,7 +9,7 @@ tests remain fast and do not modify external state. """ import os -import sys +import sys from app import utils