21 lines
490 B
Python
21 lines
490 B
Python
from app.config import Settings
|
|
|
|
|
|
def test_empty_crawl_limit_is_treated_as_none():
|
|
settings = Settings(crawl_limit="")
|
|
|
|
assert settings.crawl_limit is None
|
|
|
|
|
|
def test_numeric_crawl_limit_is_parsed():
|
|
settings = Settings(crawl_limit="25")
|
|
|
|
assert settings.crawl_limit == 25
|
|
|
|
|
|
def test_dismissal_safety_settings_have_conservative_defaults():
|
|
settings = Settings()
|
|
|
|
assert settings.dismissal_confirmation_runs == 3
|
|
assert settings.max_auto_dismissals_per_run == 25
|