You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>In order for the <aclass="reference external" href="https://docs.python.org/3/reference/simple_stmts.html#import" title="(in Python v3.9)"><spanclass="xref std std-ref">import statement</span></a> to work, Python needs
437
437
to know that the package being imported exists, and where to find it. This is
438
438
achieved by <em>installing</em> the package. In order to make a package installable, we
439
-
need to provide Python with a bit more information about the package. This
439
+
need to provide Python with a bit more information about it. This
440
440
information is contained in a Python module which must be called <codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">setup.py</span></code>.
441
441
This file isn’t part of the package and does not go in the package folder.
442
442
Instead, it should be placed in the top-level folder of your git repository, so
<h3><spanclass="section-number">2.7.2. </span>Pytest files<aclass="headerlink" href="#pytest-files" title="Permalink to this headline">¶</a></h3>
651
-
<p>Pytest looks for tests in files whose name starts with <codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">test_</span></code> and
652
-
ends with <codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">py</span></code>. Continuing with our Fibonacci example, we might
653
-
create a file called <codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">test_fibonacci.py</span></code> containing:</p>
651
+
<p>Pytest looks for tests in files whose name starts with <codeclass="file docutils literal notranslate"><spanclass="pre">test_</span></code> and
652
+
ends with <codeclass="file docutils literal notranslate"><spanclass="pre">.py</span></code>. Continuing with our Fibonacci example, we might
653
+
create a file called <codeclass="file docutils literal notranslate"><spanclass="pre">test_fibonacci.py</span></code> containing:</p>
0 commit comments