Use a pd.DataFrame as the sentinel in test_totals_is_cached

This commit is contained in:
Alexander Hess 2026-12-01 15:46:54 +01:00
commit e4711875ca
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