Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
omni-code / tests / test_agentio_server_functions.py
Size: Mime:
import pytest


@pytest.mark.asyncio
async def test_good_accepts_empty_text():
    from server_functions.agentio_functions import good

    class FakeSession:
        id = "sess-1"

    result = await good(FakeSession(), "")
    assert result["ok"] is True


@pytest.mark.asyncio
async def test_bad_accepts_empty_text():
    from server_functions.agentio_functions import bad

    class FakeSession:
        id = "sess-1"

    result = await bad(FakeSession(), "")
    assert result["ok"] is True