Skip to content

When I use generator tests, setUp() doesn't get run before the test #80

Open
@fasaxc

Description

@fasaxc

I wrote a test like this:

def test_rcv_request(self):
    def do_rcv_fanout_test(type, function_name):
        ...
    yield do_rcv_fanout_test, "create", "create_it"
    yield do_rcv_fanout_test, "create", "create_it"

The tests are detected and run but self.setUp() doesn't get run before either test.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions