mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-10 00:04:06 -09:00
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:
committed by
Julien Olivain
parent
d25f18a3c3
commit
6e6597de21
@@ -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/
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user