Hard
Python Unit Test Generator
Generates unit tests using the pytest framework for a given Python function.
📝 Contenuto del prompt
Write comprehensive unit tests using the pytest framework for the following Python function. Include test cases for happy paths, edge cases (empty inputs, None), and expected error handling. Mock any external dependencies if necessary.
[PYTHON FUNCTION]: