8000 Add support for py.test fixtures · Issue #81 · wolever/parameterized · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Add support for py.test fixtures #81
Open
Open
@wolever

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

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

      0