ports/comms/py-streamdeck/files/patch-test_test.py
gatekeeper e8c02a572f comms/py-streamdeck: New port: Python library to control the Elgato Stream Deck
- Submitter becomes maintainer

This is an open source Python 3 library to control an Elgato Stream Deck
directly, without the official software. This can allow you to create your
own custom front-ends, such as a custom control front-end for home
automation software.

WWW:		https://github.com/abcminiuser/python-elgato-streamdeck
PR:		278266
2024-04-20 23:07:19 +01:00

19 lines
540 B
Python

--- 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():