Skip to content

Commit 84d45d7

Browse files
committed
Moved my example down one level
1 parent b44813c commit 84d45d7

File tree

11 files changed

+3
-3
lines changed

11 files changed

+3
-3
lines changed

README.md renamed to nose2_example/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Python nose2 unittesting example
22
This is an example package setup for having unittests in a separate folder from the actual package.
33

4-
Run the unittests from the top folder with:
4+
Run the unittests from this top folder (where this README is) with:
55
```bash
66
nose2
77
```
88

9-
You don't need to modify the PYTHONPATH or install the package (optionally with virtualenv) to make this work. By default python uses the current path to look for a package first. By running `nose2` from the top directory, python finds the package just fine.
9+
You don't need to modify the PYTHONPATH or install the package (optionally with virtualenv) to make this work. By default python uses the current path to look for a package first. By running `nose2` from the this directory, python finds the package just fine.
1010

11-
In subpackage/utils.py I actually import from the parent directory with the absolute import
11+
The package contains both absolute and relative import to show how they work. In subpackage/utils.py I actually import from the parent directory with an absolute import. This will work both with nose2 for unittesting, but also when the package is installed in the global or virtualenv pythonpath.
1212

1313
This is an example output:
1414
```bash
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)