Skip to content

Support using pytest-trio and hypothesis together #42

Closed
@zmitchell

Description

@zmitchell

I'm a big fan of hypothesis for property-based testing. It provides a decorator, @given, that you use to pass in placeholders for randomly generated values. However, when I use it @pytest.mark.trio I get the following error:

Failed: test function `<Function 'test_my_test_func'>` is marked trio but is not async

This happens regardless of the order that you apply the decorators. Is it possible to do something like this right now?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions