Explorar o código

Add test for WSL identification

Tim Byrne %!s(int64=5) %!d(string=hai) anos
pai
achega
45f1d93193
Modificáronse 1 ficheiros con 5 adicións e 3 borrados
  1. 5 3
      test/test_unit_set_os.py

+ 5 - 3
test/test_unit_set_os.py

@@ -6,12 +6,14 @@ import pytest
 @pytest.mark.parametrize(
     'proc_value, expected_os', [
         ('missing', 'uname'),
-        ('has MiCrOsOfT inside', 'WSL'),  # case insensitive
+        ('has microsoft inside', 'WSL'),  # case insensitive
+        ('has Microsoft inside', 'WSL'),  # case insensitive
         ('another value', 'uname'),
     ], ids=[
         '/proc/version missing',
-        '/proc/version includes MS',
-        '/proc/version excludes MS',
+        '/proc/version includes ms',
+        '/proc/version excludes Ms',
+        'another value',
     ])
 def test_set_operating_system(
         runner, paths, tst_sys, proc_value, expected_os):