Check the type annotations at runtime with typeguard #15
1 changed files with 2 additions and 1 deletions
Use a pd.DataFrame as the sentinel in test_totals_is_cached
commit
e4711875ca
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue