support/testing: add python-farama-notifications tests

Add a basic runtime test for the python-farama-notifications package.
This test verifies that the `farama_notifications` package can be
imported successfully and that a test notification can be stored
within its `notifications` dictionary-like object.

Signed-off-by: Xukai Wang <kingxukai@zohomail.com>
[Julien:
 - sort DEVELOPERS entries alphabetically
 - remove underscore in test class name
]
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
Xukai Wang
2026-02-13 03:03:48 +08:00
committed by Julien Olivain
parent d25f18a3c3
commit 6e6597de21
3 changed files with 20 additions and 0 deletions

View File

@@ -3484,7 +3484,9 @@ F: package/python-cloudpickle/
F: package/python-farama-notifications/
F: package/python-gymnasium/
F: support/testing/tests/package/sample_python_cloudpickle.py
F: support/testing/tests/package/sample_python_farama_notifications.py
F: support/testing/tests/package/test_python_cloudpickle.py
F: support/testing/tests/package/test_python_farama_notifications.py
N: Yair Ben Avraham <yairba@protonmail.com>
F: package/casync/

View File

@@ -0,0 +1,6 @@
import farama_notifications
NOTIFICATION_ID = "test_event_occurrence"
NOTIFICATION_MESSAGE = "A test event has occurred in Buildroot environment!"
farama_notifications.notifications[NOTIFICATION_ID] = NOTIFICATION_MESSAGE

View File

@@ -0,0 +1,12 @@
from tests.package.test_python import TestPythonPackageBase
class TestPythonPy3FaramaNotifications(TestPythonPackageBase):
__test__ = True
config = TestPythonPackageBase.config + \
"""
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_FARAMA_NOTIFICATIONS=y
"""
sample_scripts = ["tests/package/sample_python_farama_notifications.py"]
timeout = 20