from ..core import AssetPair
from ..triggers import TriggerSpec
from .interface import get_used_currencies


def test_used_currencies_empty() -> None:
    assert get_used_currencies([]) == set()


def test_used_currencies_multiple() -> None:
    trigger_specs = [
        TriggerSpec(
            name="Test", asset_pair=AssetPair("BTC", "EUR"), cooldown_minutes=10
        ),
        TriggerSpec(
            name="Test", asset_pair=AssetPair("ETH", "EUR"), cooldown_minutes=10
        ),
    ]
    assert get_used_currencies(trigger_specs) == {"BTC", "EUR", "ETH"}

b44e4dee1655810dc7d15da769f5a00236693598
<mask token>

<mask token>


def test_used_currencies_empty() ->None:
    assert get_used_currencies([]) == set()


<mask token>

<mask token>


def test_used_currencies_empty() ->None:
    assert get_used_currencies([]) == set()


def test_used_currencies_multiple() ->None:
    trigger_specs = [TriggerSpec(name='Test', asset_pair=AssetPair('BTC',
        'EUR'), cooldown_minutes=10), TriggerSpec(name='Test', asset_pair=
        AssetPair('ETH', 'EUR'), cooldown_minutes=10)]
    assert get_used_currencies(trigger_specs) == {'BTC', 'EUR', 'ETH'}

from ..core import AssetPair
from ..triggers import TriggerSpec
from .interface import get_used_currencies


def test_used_currencies_empty() ->None:
    assert get_used_currencies([]) == set()


def test_used_currencies_multiple() ->None:
    trigger_specs = [TriggerSpec(name='Test', asset_pair=AssetPair('BTC',
        'EUR'), cooldown_minutes=10), TriggerSpec(name='Test', asset_pair=
        AssetPair('ETH', 'EUR'), cooldown_minutes=10)]
    assert get_used_currencies(trigger_specs) == {'BTC', 'EUR', 'ETH'}

from ..core import AssetPair
from ..triggers import TriggerSpec
from .interface import get_used_currencies


def test_used_currencies_empty() -> None:
    assert get_used_currencies([]) == set()


def test_used_currencies_multiple() -> None:
    trigger_specs = [
        TriggerSpec(
            name="Test", asset_pair=AssetPair("BTC", "EUR"), cooldown_minutes=10
        ),
        TriggerSpec(
            name="Test", asset_pair=AssetPair("ETH", "EUR"), cooldown_minutes=10
        ),
    ]
    assert get_used_currencies(trigger_specs) == {"BTC", "EUR", "ETH"}
