close
Skip to content

Add support for py.test fixtures #81

Description

@wolever

For example:

import pytest

@pytest.fixture
def some_fixture():
    yield "world!"

expect([
    "test_pytest_fixture('hello', 'world!')",
])

@parameterized([
    ('hello', ),
])
def test_pytest_fixture(param, some_fixture):
    missing_tests.remove("test_pytest_fixture(%r, %r)" %(param, some_fixture))

There should also be tests added for:

  • pytest.mark.usefixtures
  • combining py.test fixtures with @mock.patch decorators

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpr-wantedIt would be great if someone wrote a PR for this!

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions