Hi,

* holger krekel <[email protected]> [2015-02-06 08:40]:
> > Are there any best practises for namespacing / scoping the fixtures? Do I
> > have to take care in package A to prefix all my fixture names with
> > a_fixture1, a_fixture2 so that they do not clash in fixtures in package B?
> 
> There is no pytest mechanism for name scoping.  You could play with
> importing needed fixtures in package_b.conftest from package_a.conftest
> under a different name.  If package_a fixtures have dependencies on one
> another it won't easily work, though.  Therefore i guess using a prefix
> for the fixtures you want to share can make sense.

Yeah, I tried the importing route, that gets hairy really fast. :)
I'll go with prefixed names for now. Thanks for your input!

Wolfgang

Attachment: signature.asc
Description: Digital signature

_______________________________________________
pytest-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pytest-dev

Reply via email to