Skip to content

Commit bf0a423

Browse files
committed
Apply changes
Signed-off-by: Irene Bandera <[email protected]>
1 parent f7b7dfb commit bf0a423

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

py_utils/test/py_utils/unittest/system/test_System.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,37 +17,33 @@
1717
"""
1818

1919
import os
20+
2021
from py_utils.system.system_utils import is_linux, is_windows
2122

2223

2324
def test_is_linux():
2425
# Test case 1: Running the script on a Linux system
2526
os.name = 'posix'
26-
assert (is_linux() is True)
27+
assert is_linux()
2728

2829
# Test case 2: Running the script on a Windows system
2930
os.name = 'nt'
30-
assert (is_linux() is False)
31+
assert not is_linux()
3132

3233
# Test case 3: Running the script on a different operating system
3334
os.name = 'mac'
34-
assert (is_linux() is False)
35+
assert not is_linux()
3536

3637

3738
def test_is_windows():
3839
# Test case 1: Running the script on a Linux system
3940
os.name = 'posix'
40-
assert (is_windows() is False)
41+
assert not is_windows()
4142

4243
# Test case 2: Running the script on a Windows system
4344
os.name = 'nt'
44-
assert (is_windows() is True)
45+
assert is_windows()
4546

4647
# Test case 3: Running the script on a different operating system
4748
os.name = 'mac'
48-
assert (is_windows() is False)
49-
50-
51-
# Run the tests
52-
test_is_linux()
53-
test_is_windows()
49+
assert not is_windows()

0 commit comments

Comments
 (0)