Coding Begins

Well, today is the first coding day. The task is to port all the modules of MoinMoin tests over to pytest-2, though only half of the total number of modules have been assigned to me. So, here it goes:-

I have to change the method of invocation of tests to make it more pythonic. Currently tests are invoked using py.test testfilename. If it could be done using python testfilename, it would look more standardized and pythonic. Fortunately we can do it pytest-2. Just use pytest.main() in the file and it can be invoked using python testfilename. But on running the test it shows:

_ ERROR collecting test_crypto.py

../../conftest.py:142: in pytest_pycollect_makeitem

> if collector._istestclasscandidate(name, obj):

E AttributeError: 'Module' object has no attribute '_istestclasscandidate'

Even usage of python -m pytest shows the same error. Need to fix this.

For the time being, I remove the function 'pytest_pycollect_makeitem()' temporarily.

Few basic change implemented:

MoinMoin: pkumar_diary/2011-05-23 (last edited 2011-05-27 12:11:23 by PrashantKumar)