def start(): """ Starts a mock FastAPI client. """ config = os.path.join(tempfile.gettempdir(), "testapi.yml") with open(config, "w") as output: output.write(WORKFLOWS) client = TestClient(app) start() return client
def start(): """ Starts a mock FastAPI client. Args: full: true if full api configuration should be loaded, otherwise a read-only configuration is used """ config = os.path.join(tempfile.gettempdir(), "testapi.yml") with open(config, "w") as output: output.write(PIPELINES) client = TestClient(app) start() return client