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