2011/4/29 Ronny Pfannschmidt <ronny.pfannschm...@gmx.de>

> [...]
>
> E                   Failed: funcarg 'property' not used in this
> > function.
> [...]
> it seems the function is test_property_validation
> the current check for the metafunc funcarg dict does not consider
> arguments with default values funcargs
> thus it complains since you pass in something that has a default at the
> function level
>

It was indeed the cause. Changing:
def test_property_validation( validation_scenario_iter, property=None,
value=None, good_value=None ):

to:

def test_property_validation( validation_scenario_iter, property, value,
good_value ):

fixed the issue. This is weird as it used to work in 1.3.4...


> >
> > Source of the test module can be found
> > there: http://pastebin.com/1D2VArGt
> >
>
> i would like to suggest splitting the scenario types into multiple test
> functions, (good/bad values/types)
>
>
I'm not sure how I would go about that: it would means going through the
VALIDATION_SCENARIOS test data for each test function, and duplicating some
setup code of the test function...

 also giving names/id's to the scenarios

I did not know it was possible to give name. I added this and it greatly
improve the output!

Thanks a lot for helping figuring this out,
Baptiste.
_______________________________________________
py-dev mailing list
py-dev@codespeak.net
http://codespeak.net/mailman/listinfo/py-dev

Reply via email to