wired = namespace(db=, broker=, rec_exit=, gate=, 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