12 lines
421 B
Python
12 lines
421 B
Python
from config.main import Config
|
|
|
|
|
|
def test_config_ignores_extra_environment_fields():
|
|
assert Config.model_config.get('extra') == 'ignore'
|
|
|
|
|
|
def test_bark_has_no_default_destination(monkeypatch):
|
|
monkeypatch.delenv('BARK_URL', raising=False)
|
|
assert Config(_env_file=None).BARK_URL is None
|
|
assert Config(_env_file=None, BARK_URL='https://bark.example/my-device').BARK_URL == 'https://bark.example/my-device'
|