import sys
from time import sleep
if sys.version_info.major >= 3:
    from Test.api import start_webserver
    import pytest

    @pytest.fixture(scope='package', autouse=True)
    def fastapi_start():
        p = start_webserver()
        sleep(2)
        yield p
        p.terminate()
