Make CWA linking and uploads optional
This commit is contained in:
@@ -284,10 +284,15 @@ def test_settings(client, monkeypatch, tmp_path):
|
||||
ini = tmp_path / "personal.ini"
|
||||
ini.write_text("[defaults]\nis_adult:true\n")
|
||||
monkeypatch.setattr(config, "PERSONAL_INI", ini)
|
||||
monkeypatch.setattr(config, "CWA_URL", "")
|
||||
monkeypatch.setattr(config, "CALIBRE_DB_PATH", None)
|
||||
assert client.get("/api/settings").json == {
|
||||
"recent_chapters": 0,
|
||||
"link_books": False,
|
||||
"linking_available": False,
|
||||
"hold_new_links": False,
|
||||
"pause_uploads": False,
|
||||
"ingest_available": True,
|
||||
"personal_ini": "[defaults]\nis_adult:true\n",
|
||||
"story_jobs_hours": 36,
|
||||
"story_jobs_count": 10,
|
||||
|
||||
Reference in New Issue
Block a user