Prechádzať zdrojové kódy

Add test for WSL identification

Tim Byrne 5 rokov pred
rodič
commit
45f1d93193
1 zmenil súbory, kde vykonal 5 pridanie a 3 odobranie
  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):