generating pytest fixture definition supported?
Hello, I wish to know that if pycharm supports such feature for Pytest, that once you write a fixture name in a test function, but there is no definition for this fixture yet, is there a shortcut to quickly generate a fixture definition template? it will generate someting like this:
@pytest.fixture
def required_fixture():
pass
It's kind of like the gherkin (behave) plugin, generating a step implementation code template from an unimplemented step in feature file, by using a context operation. furthermore, if there are multiple unimplemented steps, there is option to generate all step impl in batch.
currently my pycharm will only label the undefined fixture name written in test func signature as a simple function argument, and no similar context operation is provided.
If it is confirmed not supported in pycharm, is there a way that i can customize a similar behavior in pycharm? Or will the dev team consider adding such a feature?
Thanks for clarifying!
Please sign in to leave a comment.
There is no such specific feature for pytest fixtures but you may try to create a live template manually for your case.
Feel free to create a new feature request at YouTrack for this functionality