Skip to content

Commit

Permalink
Ignore unused arguments to mocked methods
Browse files Browse the repository at this point in the history
  • Loading branch information
dagardner-nv committed Dec 13, 2023
1 parent 5d331b5 commit a620d33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/benchmarks/test_bench_agents_simple_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def test_agents_simple_pipe(mock_openai_agenerate: mock.AsyncMock,
})
]

async def _mock_openai_agenerate(self, *args, **kwargs):
async def _mock_openai_agenerate(self, *args, **kwargs): # pylint: disable=unused-argument
nonlocal mock_responses
call_count = getattr(self, '_unittest_call_count', 0)
response = mock_responses[call_count % 2]
Expand All @@ -146,7 +146,7 @@ async def _mock_openai_agenerate(self, *args, **kwargs):

mock_openai_agenerate.side_effect = _mock_openai_agenerate

async def _mock_serpapi_aresults(*args, **kwargs):
async def _mock_serpapi_aresults(*args, **kwargs): # pylint: disable=unused-argument
await asyncio.sleep(1.7)
return {
'answer_box': {
Expand Down

0 comments on commit a620d33

Please sign in to comment.