[TIP] re-using markers in pytest in fixtures

Pella,Chris Chris.Pella at safenet-inc.com
Fri Mar 8 14:18:57 PST 2013

We have a use case where we are using markers to select tests based on target platforms.  In the same test suites we have to install different types of clients based on the target platform.  I would like to re-use the marker from the command line in fixtures or helper functions that install the client. I understand how to get the original command line argument from a request object passed to the fixture, but I'm wondering if there is a way to get access to an already-parsed list of markers,  for my convenience.


The information contained in this electronic mail transmission 
may be privileged and confidential, and therefore, protected 
from disclosure. If you have received this communication in 
error, please notify us immediately by replying to this 
message and deleting it from your computer without copying 
or disclosing it.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20130308/ac8eb299/attachment.htm>

More information about the testing-in-python mailing list