<div><div dir="auto"><div dir="auto"><div dir="auto">Hi,</div><div dir="auto"><br></div><div dir="auto">I’m new to using PyTest. I’ve got a very simple python file, and a very simple test file for it.</div><div dir="auto"><br></div><div dir="auto">I’ve been having a problem getting a unittest to be able to access the file it’s trying to test. I’m sure that I don’t have the correct directory configuration, but at the same time, I’m not sure what the correct directory configuration should be though.</div><div dir="auto"><br></div><div dir="auto">Page 25 of “Python Testing with PyTest refers to __init__.py files in the same directory as the test files themselves.</div><div dir="auto"><br></div><div dir="auto">Under Project Structure, This website </div><div dir="auto"><div><a href="https://automationpanda.com/2017/03/14/python-testing-101-pytest/">https://automationpanda.com/2017/03/14/python-testing-101-pytest/</a></div><br></div><div dir="auto">states that __init__.py files should NOT be in the same directory as the test files.</div><div dir="auto"><br></div><div dir="auto">__init__.py files have always been the biggest headache for me, as I’ve never been able to find a clear reference as to what should  or shouldn’t be in those files.</div><div dir="auto">Why is it that some are empty, while others have tons of imports?</div><div dir="auto"><br></div><div dir="auto"><br></div></div><div dir="auto"><div class="gmail_quote" style="width:592px"><blockquote class="gmail_quote" style="width:592px;margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div lang="EN-US" link="#0563C1" vlink="#954F72"><div class="m_8344993059059571050WordSection1"><p class="MsoNormal"><u></u></p></div></div></blockquote></div></div>I would appreciate if someone could provide a reference as to how a PyTest project should be structured, where __init__ files should and shouldn’t be, along with their contents (if any).</div>
</div>