Files
rpi-buildroot/support/testing/tests/package/sample_python_pydantic_settings.py
Marcus Hoffmann ae31c77be3 support/testing: new python-pydantic-settings runtime test
Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>
Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
(cherry picked from commit 5eb46878bd)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
2025-05-26 17:45:31 +02:00

9 lines
134 B
Python

from pydantic_settings import BaseSettings
class Settings(BaseSettings):
api_key: str
assert Settings().api_key == "ABCD1234"