[TIP] data files for testing
Andrea Crotti
andrea.crotti.0 at gmail.com
Sat Dec 17 13:44:48 PST 2011
Suppose I have some directories and files that I only use with my unit
tests,
now how should I address them?
I mean if for example I have
package
- test
+ fake_directory
+ fake_data
The only way I found to be always able to access them is to use
"package_data" and
pkg_resources, which implies that I need to have the egg developed or
installed on my system.
Now isn't it normal practice to ignore the tests when installing eggs?
So suppose I can't rely on that how should I do?
Thanks,
Andrea
More information about the testing-in-python
mailing list