alpaca-13b· Stanford
Arena Human Preference 55K
In python with mocks, how I can use assertcalledwith when one of parameters is unknown,…
- User
In python with mocks, how I can use assert_called_with when one of parameters is unknown, so I want to test if function been called with four parameters been called with (1,2,3) and any four parameter?
- Assistant
You can use assert_called_with(1, 2, 3, *args) to test if the function has been called with four parameters 1, 2, 3, and any four parameters.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.