Custom test template


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):
    def setup_class(cls):

    def teardown_class(cls):

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



Please sign in to leave a comment.