Customize test generation with recipies

We are quite often using the functionality to generate tests and it works fine for the most part. It is however often defaulting to use Pythons Unittests, while we prefer to use and have a set up for Pytest.

This typically results in me generating the tests and then ask Sourcery to regenerate all tests for pytest or use some other testing library. It would be awesome if it was possible to provide some kind of context per default when generating tests, such as: “Write tests using pytest, use pytest-mock“ for mocking.”

I mentioned this in a support chat, and you seemed eager to look into it. I figured I can mention it here as well.

Thanks for a great product!

Please authenticate to join the conversation.

Upvoters
Status

Completed

Board
📥

Feedback

Date

About 1 year ago

Author

Robert

Subscribe to post

Get notified by email when there are changes.