import pytest
from backend.services.ai_swap_service import swap_logic

def test_swap_logic_valid(monkeypatch):
    monkeypatch.setattr("backend.modules.comfyui.ai_swap.swap_core", lambda params: "result")
    result = swap_logic({"param": "value"})
    assert result == "result" 