mirror of
https://github.com/aclist/dztui.git
synced 2026-10-25 12:12:31 +01:00
chore: add test case
This commit is contained in:
1 parent
e6e0a3036d
commit
b3b05918b7
1 file changed
+4
@@ -52,6 +52,10 @@ class TestSteamDetection(unittest.TestCase):
|
|||||||
):
|
):
|
||||||
self.assertEqual(proc.is_steam_running(STEAM_CMD), running)
|
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):
|
def test_invalid_client(self):
|
||||||
with self.assertRaises(TypeError):
|
with self.assertRaises(TypeError):
|
||||||
proc.is_steam_running("invalid-client")
|
proc.is_steam_running("invalid-client")
|
||||||
Reference in new issue
Block a user