Chaining pytest fixtures
问题 I've been unable to find the magic keywords to google this problem or find it in the pytest documentation. I'm looking to be able to setup my tests to combine multiple fixtures into a single fixture - or inversely filter fixtures from another fixture. An example will explain it much better: import pytest @pytest.fixture(params=[0,1,2,3,4,5,6]) def number(request): return request.param @pytest.fixture() def odd_number(number): if number % 2 == 1: return number else: return None # Skip (or some