" user_prompt = \"Write for a python code the unit test cases.\"\n",
" user_prompt += \"Return readable unit tests cases using pytest library, do not create any custom imports, don't forget to import errors if needed; do not explain your work other than a few comments.\"\n",
" user_prompt += \"The tests should include normal inputs, the inputs where the code is expected to fail, edge case and error handling.\"\n",
" user_prompt += \"Do not insert the function to be tested in the output before the tests.\"\n",
" user_prompt = \"\"\"Test include:\n",
"\n",
" - Valid inputs with expected results.\n",
" - Inputs that test the boundaries or limits of the function's behavior.\n",
" - Invalid inputs or scenarios where the function is expected to raise exceptions.\n",
"\n",
" Structure:\n",
"\n",
" - Begin with all necessary imports. \n",
" - Do not create custom imports. \n",
" - Do not insert in the response the function for the tests.\n",
" - Ensure proper error handling for tests that expect exceptions.\n",
" - Clearly name the test functions to indicate their purpose (e.g., test_function_name).\n",
"\n",
" Example Structure:\n",
"\n",
" - Use pytest.raises to validate exceptions.\n",
" - Use assertions to verify correct outputs for successful and edge cases.\n",
"\n",
" Documentation:\n",
"\n",
" - Add docstrings explaining what each test verifies.\"\"\"\n",