refactor: summarize error message without line number

This commit is contained in:
Florian Hönicke
2023-06-05 18:41:45 +02:00
parent cd408ccefd
commit 530ed3733e
7 changed files with 125 additions and 33 deletions

View File

@@ -3,6 +3,8 @@ from typing import List, Generator
import pytest
from dev_gpt.apis.gpt import GPTSession
def input_generator(input_sequence: list) -> Generator[str, None, None]:
"""
@@ -34,3 +36,7 @@ def microservice_dir(tmpdir) -> str:
"""
return os.path.join(str(tmpdir), "microservice")
@pytest.fixture
def init_gpt(tmpdir):
os.environ['VERBOSE'] = 'true'
GPTSession(os.path.join(str(tmpdir), 'log.json'), model='gpt-3.5-turbo')