Skip to content

Commit f3a1865

Browse files
committed
chore: Remove unused condition in client test mocks
1 parent 23a514b commit f3a1865

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/toolbox-core/tests/test_client.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,8 @@ async def client(self, aioresponses, test_tool_auth, tool_name, expected_header)
301301

302302
# mock tool INVOKE call
303303
def require_headers(url, **kwargs):
304-
if kwargs["headers"].get("my-auth-service_token") == expected_header:
305-
return CallbackResult(status=200, body="{}")
306-
else:
307-
return CallbackResult(status=400, body="{}")
304+
assert kwargs["headers"].get("my-auth-service_token") == expected_header
305+
return CallbackResult(status=200, body="{}")
308306

309307
aioresponses.post(
310308
f"{TEST_BASE_URL}/api/tool/{tool_name}/invoke",

0 commit comments

Comments
 (0)