New paste Repaste Download
    def test_zspread_annotations_rounds_spread_to_4_dp():
        """The wire carries a 4-dp rounded spread so the trend line endpoints in the JS's hover
        tooltip match the chart's y axis without a 10-digit float in the payload."""
        def _stub(_ets, _spreads, *, flow_deltas=None, **_kwargs):
            return {"triggers": [],
                    "top_points": [(0, "10:00", 1.23456789)],
                    "bottom_points": [(1, "10:01", -1.23456789)]}
    
        import rtrader.services.tide_wave_dashboard as tw_mod
        monkeypatch = pytest.MonkeyPatch()
        try:
>           monkeypatch.setattr(tw_mod, "compute_triggers_and_trend_lines", _stub)
E           AttributeError: <module 'rtrader.services.tide_wave_dashboard' from '/Users/cao/robinhood-pm-78c11d720042/rtrader/services/tide_wave_dashboard.py'> has no attribute 'compute_triggers_and_trend_lines'
tests/services/test_tide_wave_zspread_annotations.py:149: AttributeError
Filename: None. Size: 963b. View raw, , hex, or download this file.

This paste expires on 2026-08-31 08:27:50.075890+00:00. Pasted through deprecated-web.