Skip to content

Commit 3fb2fca

Browse files
committed
ruff, black
1 parent e6f85f9 commit 3fb2fca

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

tests/conftest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ def mock_reasoning_env(monkeypatch, request):
450450
mock_default_azure_credential.return_value = MockAzureCredential()
451451
yield
452452

453+
453454
@pytest.fixture(params=agent_envs, ids=["agent_client0"])
454455
def mock_agent_env(monkeypatch, request):
455456
with mock.patch.dict(os.environ, clear=True):
@@ -473,6 +474,7 @@ def mock_agent_env(monkeypatch, request):
473474
mock_default_azure_credential.return_value = MockAzureCredential()
474475
yield
475476

477+
476478
@pytest.fixture(params=agent_auth_envs, ids=["agent_auth_client0"])
477479
def mock_agent_auth_env(monkeypatch, request):
478480
with mock.patch.dict(os.environ, clear=True):
@@ -496,6 +498,7 @@ def mock_agent_auth_env(monkeypatch, request):
496498
mock_default_azure_credential.return_value = MockAzureCredential()
497499
yield
498500

501+
499502
@pytest_asyncio.fixture(scope="function")
500503
async def client(
501504
monkeypatch,
@@ -533,6 +536,7 @@ async def reasoning_client(
533536
mock_openai_embedding(test_app.app.config[app.CONFIG_OPENAI_CLIENT])
534537
yield test_app.test_client()
535538

539+
536540
@pytest_asyncio.fixture(scope="function")
537541
async def agent_client(
538542
monkeypatch,
@@ -552,6 +556,7 @@ async def agent_client(
552556
mock_openai_embedding(test_app.app.config[app.CONFIG_OPENAI_CLIENT])
553557
yield test_app.test_client()
554558

559+
555560
@pytest_asyncio.fixture(scope="function")
556561
async def agent_auth_client(
557562
monkeypatch,

tests/test_app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ async def test_ask_rtr_text(client, snapshot):
168168
result = await response.get_json()
169169
snapshot.assert_match(json.dumps(result, indent=4), "result.json")
170170

171+
171172
@pytest.mark.asyncio
172173
async def test_ask_rtr_text_agent(agent_client, snapshot):
173174
response = await agent_client.post(
@@ -209,6 +210,7 @@ async def test_ask_rtr_text_filter(auth_client, snapshot):
209210
result = await response.get_json()
210211
snapshot.assert_match(json.dumps(result, indent=4), "result.json")
211212

213+
212214
@pytest.mark.asyncio
213215
async def test_ask_rtr_text_agent_filter(agent_auth_client, snapshot):
214216
response = await agent_auth_client.post(
@@ -504,6 +506,7 @@ async def test_chat_text(client, snapshot):
504506
assert result["context"]["thoughts"][1]["props"]["use_semantic_ranker"] is False
505507
snapshot.assert_match(json.dumps(result, indent=4), "result.json")
506508

509+
507510
@pytest.mark.asyncio
508511
async def test_chat_text_agent(agent_client, snapshot):
509512
response = await agent_client.post(
@@ -547,6 +550,7 @@ async def test_chat_text_filter(auth_client, snapshot):
547550
result = await response.get_json()
548551
snapshot.assert_match(json.dumps(result, indent=4), "result.json")
549552

553+
550554
@pytest.mark.asyncio
551555
async def test_chat_text_filter_agent(agent_auth_client, snapshot):
552556
response = await agent_auth_client.post(

0 commit comments

Comments
 (0)