Files
cthulhu/tests/test_notification_presenter_compat.py

16 lines
500 B
Python

"""Compatibility tests for the notification presenter."""
from __future__ import annotations
import pytest
from cthulhu import notification_presenter
@pytest.mark.unit
def test_get_presenter_alias_matches_legacy_get_presenter() -> None:
"""The Mako monitor still uses the legacy camelCase singleton accessor."""
assert notification_presenter.getPresenter is notification_presenter.get_presenter
assert notification_presenter.getPresenter() is notification_presenter.get_presenter()