Custom test template

Hi,

I can create a new standard unittest class for a funtion in Pycharm. Is it possible to add a custom test template? I'm using py.test and e.g. want my test for foo() look like:


import pytest

class TestFoo(object):
    @classmethod
    def setup_class(cls):
        pass

    @classmethod
    def teardown_class(cls):
        pass
prettyPrint();

If not, it would be a neat feature for a future release.

Regards,

Christian

Please sign in to leave a comment.