Files
changedetection.io/changedetectionio/tests/apprise/test_apprise_asset.py
Luca ea9ba3bb2e
Some checks are pending
Build and push containers / metadata (push) Waiting to run
Build and push containers / build-push-containers (push) Waiting to run
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Waiting to run
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Test the built 📦 package works basically. (push) Blocked by required conditions
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Blocked by required conditions
ChangeDetection.io App Test / lint-code (push) Waiting to run
ChangeDetection.io App Test / test-application-3-10 (push) Blocked by required conditions
ChangeDetection.io App Test / test-application-3-11 (push) Blocked by required conditions
ChangeDetection.io App Test / test-application-3-12 (push) Blocked by required conditions
ChangeDetection.io App Test / test-application-3-13 (push) Blocked by required conditions
Notifications backend - Refactor + tests for Apprise custom integration (#3057)
2025-03-27 18:07:36 +01:00

25 lines
673 B
Python

import pytest
from apprise import AppriseAsset
from changedetectionio.apprise_asset import (
APPRISE_APP_DESC,
APPRISE_APP_ID,
APPRISE_APP_URL,
APPRISE_AVATAR_URL,
)
@pytest.fixture(scope="function")
def apprise_asset() -> AppriseAsset:
from changedetectionio.apprise_asset import apprise_asset
return apprise_asset
def test_apprise_asset_init(apprise_asset: AppriseAsset):
assert isinstance(apprise_asset, AppriseAsset)
assert apprise_asset.app_id == APPRISE_APP_ID
assert apprise_asset.app_desc == APPRISE_APP_DESC
assert apprise_asset.app_url == APPRISE_APP_URL
assert apprise_asset.image_url_logo == APPRISE_AVATAR_URL