Description
Description
When UTBot generates tests for methods which return class from the library it doesn't add import statement to test file, so such test always fails.
To Reproduce
Steps to reproduce the behavior:
import json
def some_json():
return json.JSONDecoder
- Use code above to reproduce the problem
- Generate test for that code
- Run generated tests
Expected behavior
Generated test runs without issues
Actual behavior
Generated test fails because import of json
is not added to test file.
Visual proofs (screenshots, logs, images)