| wired = namespace(db=<test_market_state_etf._FakeDB object at 0x1197055e0>, broker=<test_market_state_etf._FakeBroker object a...ock id='4721763936'>, rec_exit=<MagicMock id='4714315744'>, gate=<MagicMock id='4721760192'>, hold=namespace(doc=None))
|
|
|
| def test_flip_from_flat_buys_target_locks_and_records(wired):
|
| d = mse.flip_account("cuixia", DAY, NOW, "up", execute=True)
|
| > assert d["action"] == "flip" and d["target_symbol"] == "TNA"
|
| E AssertionError: assert ('hold' == 'flip'
|
| E
|
| E - flip
|
| E + hold)
|
|
|
| tests/services/test_market_state_etf.py:335: AssertionError
|