feat(storage): add Evernote destination (#862)
* feat(storage): add Evernote destination * style: apply ruff auto-fix - Auto-formatted code with ruff format - Applied ruff linting fixes with --fix Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: Christian Krakau-Louis <christian@Christians-Mac-mini-7.local> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
8e744c076d
commit
4b46c4baf8
@@ -35,6 +35,7 @@ class TestValidateStorageConfigs:
|
||||
"google_drive",
|
||||
"onedrive",
|
||||
"email",
|
||||
"evernote",
|
||||
"paperless",
|
||||
"uptime_kuma",
|
||||
]
|
||||
@@ -83,6 +84,13 @@ class TestValidateStorageConfigs:
|
||||
assert "DEST_EMAIL_HOST is not configured" in result["email"]
|
||||
assert "DEST_EMAIL_DEFAULT_RECIPIENT is not configured" in result["email"]
|
||||
|
||||
def test_evernote_missing_token(self):
|
||||
"""Test validation when Evernote destination auth token is missing."""
|
||||
with patch("app.utils.config_validator.validators.settings") as mock_settings:
|
||||
mock_settings.evernote_auth_token = None
|
||||
result = validate_storage_configs()
|
||||
assert "EVERNOTE_AUTH_TOKEN is not configured" in result["evernote"]
|
||||
|
||||
|
||||
@pytest.mark.unit
|
||||
class TestValidateEmailConfig:
|
||||
|
||||
Reference in New Issue
Block a user