<filename>tests/here/test_magic.py
import pytest
from herethere.magic import MagicHere


@pytest.mark.asyncio
async def test_server_is_started(event_loop, tmp_environ):
    magic = MagicHere(shell=None)
    magic.start_server("tests/here.env")

    server = magic.server
    assert server.is_serving()
    await server.stop()

<filename>tests/here/test_magic.py
import pytest
from herethere.magic import MagicHere


@pytest.mark.asyncio
async def test_server_is_started(event_loop, tmp_environ):
    magic = MagicHere(shell=None)
    magic.start_server("tests/here.env")

    server = magic.server
    assert server.is_serving()
    await server.stop()
