Re: [pytest-dev] Help with parametrized fixtures

2014-12-01 Thread holger krekel
On Thu, Nov 27, 2014 at 14:22 -0800, Nikolaus Rath wrote: > Carl Meyer writes: > > Hi Nikolaus, > > > > On 11/26/2014 01:21 PM, Nikolaus Rath wrote: > >> I have a parametrized fixture foo, and some test cases that use it: > >> > >> @pytest.fixture(params=(1,2,3,4,5)) > >> def foo(request): > >>

Re: [pytest-dev] Help with parametrized fixtures

2014-11-27 Thread Nikolaus Rath
Carl Meyer writes: > Hi Nikolaus, > > On 11/26/2014 01:21 PM, Nikolaus Rath wrote: >> I have a parametrized fixture foo, and some test cases that use it: >> >> @pytest.fixture(params=(1,2,3,4,5)) >> def foo(request): >> # ... >> return foo_f >> >> def test_1(foo): >> # ... >> >> def

Re: [pytest-dev] Help with parametrized fixtures

2014-11-26 Thread Carl Meyer
Hi Nikolaus, On 11/26/2014 01:21 PM, Nikolaus Rath wrote: > I have a parametrized fixture foo, and some test cases that use it: > > @pytest.fixture(params=(1,2,3,4,5)) > def foo(request): > # ... > return foo_f > > def test_1(foo): > # ... > > def test_2(foo): > # > > Now,

[pytest-dev] Help with parametrized fixtures

2014-11-26 Thread Nikolaus Rath
Hello, I have a parametrized fixture foo, and some test cases that use it: @pytest.fixture(params=(1,2,3,4,5)) def foo(request): # ... return foo_f def test_1(foo): # ... def test_2(foo): # Now, I'd like to add an additional test, but running it only makes sense for some o