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
This is an example package setup for having unittests in a separate folder from the actual package.
3
3
4
-
Run the unittests from the top folder with `PYTHONPATH=. nose2` if you haven't installed this package in your pythonpath anywhere (through virtualenv or side wide).
4
+
Run the unittests from the top folder with:
5
+
```bash
6
+
PYTHONPATH=. nose2
7
+
```
8
+
if you haven't installed this package in your pythonpath anywhere (through virtualenv or side wide).
5
9
6
10
Note now I modify the PYTHONPATH environment variable to tell nose2 where to find the package. I also use relative imports inside my package to make sure all modules can be found.
0 commit comments