<filename>tests/09_params-ception_test.py<gh_stars>0
import pytest


@pytest.fixture(params=["a", "b", "c", "d"])
def letters_fixture(request):
    """
    Fixtures can cause tests to be run multiple times (once per parameter)
    """
    yield request.param


@pytest.fixture(params=[1, 2, 3, 4])
def numbers_fixture(request):
    """
    Fixtures can invoke each other (producing cartesian products of parameters)
    """
    yield request.param


def test_fixtureception(letters_fixture, numbers_fixture):
    """
    Print out our combined fixture "product"
    """
    coordinate = letters_fixture + str(numbers_fixture)

    print('\nRunning test_fixtureception with "{}"'.format(coordinate))

<filename>tests/09_params-ception_test.py<gh_stars>0
import pytest


@pytest.fixture(params=["a", "b", "c", "d"])
def letters_fixture(request):
    """
    Fixtures can cause tests to be run multiple times (once per parameter)
    """
    yield request.param


@pytest.fixture(params=[1, 2, 3, 4])
def numbers_fixture(request):
    """
    Fixtures can invoke each other (producing cartesian products of parameters)
    """
    yield request.param


def test_fixtureception(letters_fixture, numbers_fixture):
    """
    Print out our combined fixture "product"
    """
    coordinate = letters_fixture + str(numbers_fixture)

    print('\nRunning test_fixtureception with "{}"'.format(coordinate))

Fixtures can cause tests to be run multiple times (once per parameter) Fixtures can invoke each other (producing cartesian products of parameters) Print out our combined fixture "product"