From d2dfde8a14801cf9b4dbfd70f6a08d7c08729888 Mon Sep 17 00:00:00 2001 From: Irene Bandera Date: Mon, 12 Jun 2023 10:05:25 +0200 Subject: [PATCH] Apply changes Signed-off-by: Irene Bandera --- .../py_utils/unittest/system/test_System.py | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/py_utils/test/py_utils/unittest/system/test_System.py b/py_utils/test/py_utils/unittest/system/test_System.py index 0a693969..ec51327e 100644 --- a/py_utils/test/py_utils/unittest/system/test_System.py +++ b/py_utils/test/py_utils/unittest/system/test_System.py @@ -17,37 +17,33 @@ """ import os + from py_utils.system.system_utils import is_linux, is_windows def test_is_linux(): # Test case 1: Running the script on a Linux system os.name = 'posix' - assert (is_linux() is True) + assert is_linux() # Test case 2: Running the script on a Windows system os.name = 'nt' - assert (is_linux() is False) + assert not is_linux() # Test case 3: Running the script on a different operating system os.name = 'mac' - assert (is_linux() is False) + assert not is_linux() def test_is_windows(): # Test case 1: Running the script on a Linux system os.name = 'posix' - assert (is_windows() is False) + assert not is_windows() # Test case 2: Running the script on a Windows system os.name = 'nt' - assert (is_windows() is True) + assert is_windows() # Test case 3: Running the script on a different operating system os.name = 'mac' - assert (is_windows() is False) - - -# Run the tests -test_is_linux() -test_is_windows() + assert not is_windows()