<div dir="ltr">Yeah it would be fine to import, possibly by making another module like "testing" or something like that that you can import.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 7, 2021 at 1:30 PM Hartmut Goebel <<a href="mailto:h.goebel@crazy-compilers.com">h.goebel@crazy-compilers.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div>Am 02.06.21 um 16:56 schrieb Bruno
Oliveira:<br>
</div>
<blockquote type="cite">
<p style="margin:1.2em 0px">One solution would be to do
a small refactoring in your fixtures, to also expose their
functionality as functions. For example:</p>
</blockquote>
<p>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)?<br>
</p>
<pre cols="72">--
Regards
Hartmut Goebel
| Hartmut Goebel | <a href="mailto:h.goebel@crazy-compilers.com" target="_blank">h.goebel@crazy-compilers.com</a> |
| <a href="http://www.crazy-compilers.com" target="_blank">www.crazy-compilers.com</a> | compilers which you thought are impossible |
</pre>
</div>
</blockquote></div>