Check the type annotations at runtime with typeguard #15

Merged
alexander merged 8 commits from add-typeguard into develop 2026-12-01 17:54:26 +01:00
Showing only changes of commit e4711875ca - Show all commits

Use a pd.DataFrame as the sentinel in test_totals_is_cached

Alexander Hess 2026-12-01 15:46:54 +01:00
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -2,6 +2,7 @@
import datetime as dt
import pandas as pd
import pytest
from tests import config as test_config
@ -51,7 +52,7 @@ class TestProperties:
that is cached into `OrderHistory._data`, which must be unset first.
"""
monkeypatch.setattr(order_history, "_data", None)
sentinel = object()
sentinel = pd.DataFrame()
monkeypatch.setattr(order_history, "aggregate_orders", lambda: sentinel)
result1 = order_history.totals