You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
01/software/source/server/conftest.py

17 lines
353 B

import pytest
from source.server.i import configure_interpreter
from interpreter import OpenInterpreter
from fastapi.testclient import TestClient
from .server import app
@pytest.fixture
def client():
return TestClient(app)
@pytest.fixture
def mock_interpreter():
interpreter = configure_interpreter(OpenInterpreter())
return interpreter