aboutsummaryrefslogtreecommitdiffstats
path: root/comms/py-streamdeck/files/patch-test_test.py
blob: 5217afdb46a72576254e48d4f81633ad5b87c532 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- test/test.py.orig	2024-04-20 20:51:55 UTC
+++ test/test.py
@@ -17,7 +17,16 @@ from PIL import ImageDraw
 from StreamDeck.DeviceManager import DeviceManager
 from StreamDeck.ImageHelpers import PILHelper
 from PIL import ImageDraw
+import pytest
 
+def initialize_decks():
+    manager = DeviceManager(transport="dummy")
+    streamdecks = manager.enumerate()
+    return streamdecks
+
+@pytest.fixture(params=initialize_decks())
+def deck(request):
+    return request.param
 
 def test_pil_helpers(deck):
     if not deck.is_visual():