"""Guard: the Binance EXECUTION surface must stay dead. Binance is deprecated as a broker (Task 6 of
phase0b venue consolidation); it remains only as a DATA source until Task 7 removes the data adapters/
ingests too. This guard is narrow on purpose — it does NOT assert "no binance anywhere" (that's Task 7)."""
from __future__ import annotations

import importlib

import pytest


def test_crypto_exec_cli_commands_not_registered() -> None:
    from fxhnt.cli import app

    names = {c.name or (c.callback.__name__ if c.callback else None) for c in app.registered_commands}
    assert "crypto-rebalance" not in names
    assert "crypto-positions" not in names
    assert "crypto-flatten" not in names


def test_binance_ccxt_adapter_is_unimportable() -> None:
    with pytest.raises(ModuleNotFoundError):
        importlib.import_module("fxhnt.adapters.exchange.binance_ccxt")
