From 7b90c6a61f4f1ced4fabe86c572b219482bbb42c Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 21 Sep 2023 14:44:34 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A6=20chore(conftest.py):=20add=20fixt?= =?UTF-8?q?ure=20and=20example=20file=20for=20grouped=20chat=20JSON=20data?= =?UTF-8?q?=20=F0=9F=94=A7=20refactor(conftest.py):=20rename=20fixture=20`?= =?UTF-8?q?json=5Fflow`=20to=20`openapi=5Fjson=5Fflow`=20for=20better=20cl?= =?UTF-8?q?arity=20and=20consistency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/conftest.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index 1d1fb9ac7..6a5d7f0fb 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -29,6 +29,9 @@ def pytest_configure(): pytest.OPENAPI_EXAMPLE_PATH = ( Path(__file__).parent.absolute() / "data" / "Openapi.json" ) + pytest.GROUPED_CHAT_EXAMPLE_PATH = ( + Path(__file__).parent.absolute() / "data" / "grouped_chat.json" + ) pytest.CODE_WITH_SYNTAX_ERROR = """ def get_text(): @@ -101,6 +104,12 @@ def json_flow(): return f.read() +@pytest.fixture +def grouped_chat_json_flow(): + with open(pytest.GROUPED_CHAT_EXAMPLE_PATH, "r") as f: + return f.read() + + @pytest.fixture(name="session") def session_fixture(): engine = create_engine(