[TIP] making attributes available project-wide

dpb dpb dpb.mediamath at gmail.com
Tue Mar 10 09:25:32 PDT 2015


After writing simple Pytest tests (groups of discrete functions in one or
more files) for some time, I am beginning to experiment with more
sophisticated functionality.

I am struggling with the structural issues. One urgent question is: what is
the recommended way of making certain data available project-wide, in
different test files. Are there Pytest objects that are available by
default to all test functions in all test files in a directory? Or does
some particular class structure have to be written, for this to happen?

Thanks for your help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20150310/28be4e6c/attachment.htm>


More information about the testing-in-python mailing list