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.
19 lines
404 B
19 lines
404 B
10 months ago
|
import os
|
||
|
import sys
|
||
|
import pytest
|
||
|
from source.server.i import configure_interpreter
|
||
|
from unittest.mock import Mock
|
||
|
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
|