[TIP] pytest: different tmppath in subprocesses

Bruno Oliveira nicoddemus at gmail.com
Mon Jun 7 10:14:00 PDT 2021


Yeah it would be fine to import, possibly by making another module like
"testing" or something like that that you can import.

On Mon, Jun 7, 2021 at 1:30 PM Hartmut Goebel <h.goebel at crazy-compilers.com>
wrote:

> Am 02.06.21 um 16:56 schrieb Bruno Oliveira:
>
> One solution would be to do a small refactoring in your fixtures, to also
> expose their functionality as functions. For example:
>
> Looks good. How can I "import" this function from conftest.py? Do I need
> to import conftest.py (and is it save to so so)?
>
> --
> Regards
> Hartmut Goebel
>
> | Hartmut Goebel          | h.goebel at crazy-compilers.com               |
> | www.crazy-compilers.com | compilers which you thought are impossible |
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20210607/88fc29bd/attachment.htm>


More information about the testing-in-python mailing list