chore: add test case

This commit is contained in:
aclist committed 2026-10-09 06:45:59 +09:00
1 parent e6e0a3036d
commit b3b05918b7
1 file changed
+4
+4
View File
@@ -52,6 +52,10 @@ class TestSteamDetection(unittest.TestCase):
):
self.assertEqual(proc.is_steam_running(STEAM_CMD), running)
def test_native_steam_while_flatpak_is_running(self):
with patch.object(proc, "is_flatpak_steam_running", return_value=True):
self.assertEqual(proc.is_steam_running(STEAM_CMD), False)
def test_invalid_client(self):
with self.assertRaises(TypeError):
proc.is_steam_running("invalid-client")