jeudi 24 mars 2016

import test files with Nose from subdirectories

I am to find out how to make nose gather test csv files.It's able to pickup on the test unit files them self recursively but not the .csv inside them. Here is how I have my directory lay out.

Working

Test_Units
    |___nose.py
    |___test.csv
    |
    |___Test_Unit_1
            |_______Test_unit.py

Non-Working

Test_Units
    |___nose.py
    |
    |___Test_Unit_1
            |_______Test_unit.py
            |_______test.csv

It's seems like nose needs that file in it's local path.

here is how nose.py is configured

import nose
result = nose.run()

Aucun commentaire:

Enregistrer un commentaire