Skip to content

Commit 398b11f

Browse files
committed
nose test & fixture for unittest (setup - teardown)
1 parent 6a0db7e commit 398b11f

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ In the simplest possible way. . .
2929
Project is created with:
3030

3131
* Python: 3.9
32+
* nose: 1.3.7
3233

3334
## Help
3435

@@ -71,14 +72,23 @@ python -m doctest -v filename.py
7172
* run unittests:
7273

7374
```shell
74-
python -m unittest -v filename.py
75+
python -m unittest -v test_file.py
7576
```
7677
* run all unittests:
7778

7879
```shell
7980
python -m unittest -v discover
8081
```
82+
* run all tests with nose test:
8183

84+
```shell
85+
nosetests
86+
```
87+
* run one test with nosetest:
88+
89+
```shell
90+
nosetests -v test_file.py
91+
```
8292
## Credits
8393

8494
* [mongard](https://www.mongard.ir/courses/unittest)

0 commit comments

Comments
 (0)