Data files for tests
eryksun ()
eryksun at gmail.com
Sun Mar 27 19:33:22 EDT 2011
On Sunday, March 27, 2011 7:07:33 PM UTC-4, Steven D'Aprano wrote:
> I have a package with some tests. The tests are not part of the package
> itself, so I have a laid out my files like this:
>
>
> src/
> spam/
> __init__.py
> other-files.py
> test_spam.py
>
>
> Some of the tests depend on external data files. Where should I put them?
> In the same directory as test_spam?
Including data files and accessing them via the resource management API:
http://packages.python.org/distribute/setuptools.html#including-data-files
More information about the Python-list
mailing list