| def test_rehearsal_collapses_the_same_way_the_live_voice_does():
|
| evs = [_rfill(14, 0, "cuixia", "buy", "TZA", 2, 45.00, "c1"),
|
| _rfill(14, 0, "miaoyong", "buy", "TZA", 45, 45.00, "m1"),
|
| _rfill(14, 0, "yuchao", "buy", "TZA", 49, 45.00, "y1"),
|
| _rfill(14, 20, "cuixia", "sell", "TZA", 2, 45.00, "c2")]
|
| said = tv.rehearse_day("2026-09-18", say_fn=lambda t: True, events_fn=lambda day: evs,
|
| all_accounts=["cuixia", "miaoyong", "yuchao"])
|
| > assert "all three holding TZA, 5 minutes, about even." in said
|
| E AssertionError: assert 'all three holding TZA, 5 minutes, about even.' in ['We went short at 10:00.', 'We went short at 10:00.', 'We went short at 10:00.', 'Holding short position for 5 minutes.', 'Holding short position for 10 minutes.', 'Holding short position for 15 minutes.', ...]
|
|
|
| tests/services/test_tide_voice_announcer.py:1043: AssertionError
|