feat: move timezone preference to config file (#2096)
BREAKING CHANGE: The timezone preference moved to the configuration file.
This commit is contained in:
parent
8ef82d798e
commit
9b3207b8a4
15 changed files with 73 additions and 15 deletions
|
@ -6,10 +6,22 @@ from libretime_shared.config._models import (
|
|||
AudioMP3,
|
||||
AudioOGG,
|
||||
AudioOpus,
|
||||
GeneralConfig,
|
||||
StreamConfig,
|
||||
)
|
||||
|
||||
|
||||
def test_general_config_timezone():
|
||||
defaults = {
|
||||
"public_url": "http://localhost:8080",
|
||||
"api_key": "api_key",
|
||||
}
|
||||
GeneralConfig(**defaults, timezone="UTC")
|
||||
GeneralConfig(**defaults, timezone="Europe/Berlin")
|
||||
with pytest.raises(ValidationError):
|
||||
GeneralConfig(**defaults, timezone="Europe/Invalid")
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"audio",
|
||||
[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue