Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parametrise the recipe fixture in tests #76

Open
RMeli opened this issue Mar 9, 2023 · 0 comments
Open

Parametrise the recipe fixture in tests #76

RMeli opened this issue Mar 9, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@RMeli
Copy link
Member

RMeli commented Mar 9, 2023

The recipe fixture could be parametrised, instead of returning a list of recipes to loop over in other test functions.

@pytest.fixture
def recipe_paths(test_path, recipes):
return [test_path / "recipes" / r for r in recipes]

@RMeli RMeli added the enhancement New feature or request label Mar 9, 2023
@RMeli RMeli self-assigned this Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant