
wired = namespace(db=<test_market_state_etf._FakeDB object at 0x11df22f00>, broker=<test_market_state_etf._FakeBroker object a...ock id='4797382528'>, rec_exit=<MagicMock id='4797042272'>, gate=<MagicMock id='4797378640'>, hold=namespace(doc=None))

    def test_flip_confluence_hardhit_sizes_2x(wired):
        wired.cfg.MARKET_STATE_ETF_SIZING_MODE = "confluence"
        with patch.object(mse, "confluence_score", return_value=3):
            mse.flip_account("cuixia", DAY, NOW, "up", execute=True)   # NOW=13:45 post-cutoff
>       assert _co(wired.broker.orders) == [("buy", "TNA", 257, "mktstate-bull-TNA-cuixia")]   # 0.30*2=0.60→257
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E       AssertionError: assert [] == [('buy', 'TNA...-TNA-cuixia')]
E         
E         Right contains one more item: ('buy', 'TNA', 257, 'mktstate-bull-TNA-cuixia')
E         
E         Full diff:
E         + []
E         - [
E         -     (...
E         
E         ...Full output truncated (6 lines hidden), use '-vv' to show

tests/services/test_market_state_etf.py:1281: AssertionError
