Fix feed validation output
This commit is contained in:
parent
c834c3c254
commit
db1d9b44b7
13 changed files with 477 additions and 54 deletions
|
|
@ -12,7 +12,9 @@ from repub.model import (
|
|||
Source,
|
||||
database,
|
||||
initialize_database,
|
||||
load_feed_url,
|
||||
load_max_concurrent_jobs,
|
||||
load_settings_form,
|
||||
resolve_database_path,
|
||||
save_setting,
|
||||
schema_paths,
|
||||
|
|
@ -250,3 +252,14 @@ def test_save_setting_persists_json_value(tmp_path: Path) -> None:
|
|||
|
||||
assert row.value == "4"
|
||||
assert load_max_concurrent_jobs() == 4
|
||||
|
||||
|
||||
def test_load_settings_form_includes_feed_url(tmp_path: Path) -> None:
|
||||
initialize_database(tmp_path / "settings-form.db")
|
||||
save_setting("feed_url", "https://mirror.example")
|
||||
|
||||
assert load_feed_url() == "https://mirror.example"
|
||||
assert load_settings_form() == {
|
||||
"max_concurrent_jobs": 1,
|
||||
"feed_url": "https://mirror.example",
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue