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
Copy file name to clipboardExpand all lines: docs/contributing/app-dev.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,8 +97,9 @@ pytest
97
97
```
98
98
99
99
The test code runs from the local `tests` directory. Updating code in `tests` modifies the tests.
100
-
However, the tested code is the *installed* penn_chime module in your virtual environment's site-packages directory, it is *not* the code in the local `src` directory.
101
-
Use `pip install .` to push your local changes in `src` to replace the installed `penn_chime` module.
100
+
Use `pip install -e .` so that your local changes to `src` are also the module under test.
101
+
For CI, use `pip install .` to test the module installed in site-packages to ensure that the installed module is packaged correctly with all of its dependencies.
102
+
Do not import from src in your tests or your python code as this will appear to work locally, but break the python module.
0 commit comments