Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update structure.rst
if the test file is in the same folder as the `context.py`, then there is no need for the preceding dot when importing context
  • Loading branch information
gdarkwah authored May 18, 2024
commit b6a38368d9e92cab1b81f9c332bd99d9163e1570
2 changes: 1 addition & 1 deletion docs/writing/structure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ Then, within the individual test modules, import the module like so:

::

from .context import sample
from context import sample

This will always work as expected, regardless of installation method.

Expand Down