mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2025-12-03 14:52:34 +00:00
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
25 lines
673 B
Python
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
|