mirror of
https://git.freebsd.org/ports.git
synced 2025-05-16 17:21:49 -04:00
- 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
19 lines
540 B
Python
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():
|