On Fri, 2011-04-29 at 10:12 +0200, Baptiste Lepilleur wrote:
> Hi,
>
>
> I just upgraded from py.test 1.3.4 to 2.0.3, and I'm running into a
> new failure related to pytest_generate_tests that I can not make sense
> of:
>
>
> ---
>
>
> py.test src\nitroz\test_dbo2.py
> ================================================= test session starts
> =================================================
> platform win32 -- Python 3.2.0 -- pytest-2.0.3
> collected 0 items / 1 errors
>
>
> ======================================================= ERRORS
> ========================================================
> ______________________________________ ERROR collecting
> src/nitroz/test_dbo2.py _______________________________________
> src\nitroz\test_dbo2.py:151: in pytest_generate_tests
> > good_value=good_value) )
> C:\Python32\lib\site-packages\pytest-2.0.3-py3.2.egg\_pytest
> \python.py:550: in addcall
> > pytest.fail("funcarg %r not used in this
> function." % name)
> E Failed: funcarg 'property' not used in this
> function.
> =============================================== 1 error in 0.12
> seconds ===============================================
>
>
> ---
>
>
> What does this error message means? What 'this function' refer to?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 > > 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) also giving names/id's to the scenarios > > Baptiste. > > > _______________________________________________ > py-dev mailing list > [email protected] > http://codespeak.net/mailman/listinfo/py-dev
signature.asc
Description: This is a digitally signed message part
_______________________________________________ py-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/py-dev
