In Chapter 4 - Parametrizing Steps I seem to be having issues incorporating target_fixture='basket' to work alongside the changes.
Unsure if this is an issue, or because I am a total newbie and not quite grasped things all that well as yet.
I did have this working in the Chapter 3 Tutorials.
I am essentially stuck at 4 Mins 36 Seconds where you run the tests for the first time, are you able to confirm if this is an issue, or i am doing things incorrectly in the @given step.
Some variations I have tried:
@given(parsers.cfparse('the basket has "{initial:Number}" cucumbers', extra_types=dict(Number=int), target_fixture='basket')) def basket(initial): return CucumberBasket(initial_count=initial)
@given(parsers.cfparse('the basket has "{initial:Number}" cucumbers', target_fixture='basket' extra_types=dict(Number=int))) def basket(initial): return CucumberBasket(initial_count=initial)
After watching further into the video things change a bit, but the same doesn't seemingly work either
@given(parsers.cfparse('the basket has "{initial:Number}" cucumbers', target_fixture='basket', extra_types=EXTRA_TYPES)) def basket(initial): return CucumberBasket(initial_count=initial)
@given(parsers.cfparse('the basket has "{initial:Number}" cucumbers', extra_types=EXTRA_TYPES, target_fixture='basket')) def basket(initial): return CucumberBasket(initial_count=initial)