File tree Expand file tree Collapse file tree 3 files changed +3
-18
lines changed Expand file tree Collapse file tree 3 files changed +3
-18
lines changed Original file line number Diff line number Diff line change @@ -69,27 +69,19 @@ GitHub has an excellent `guide`_.
69
69
The current tests are written in 2 styles:
70
70
71
71
* standard xUnit based only on stdlib unittest
72
- (can be executed with nose)
73
72
* functional test using a custom framework and executed by the
74
73
pycodestyle itself when installed in dev mode.
75
74
76
75
77
76
Running unittest
78
77
~~~~~~~~~~~~~~~~
79
78
80
- While the tests are writted using stdlib `unittest ` module, the existing
81
- test include unit, integration and functional tests.
79
+ The tests are writted using stdlib `unittest ` module, the existing test
80
+ include unit, integration and functional tests.
82
81
83
- There are a couple of ways to run the tests::
82
+ To run the tests::
84
83
85
84
$ python setup.py test
86
- $ # Use nose to run specific test
87
- $ nosetests \
88
- > testsuite.test_blank_lines:TestBlankLinesDefault.test_initial_no_blank
89
- $ # Use nose to run a subset and check coverage, and check the resulting
90
- $ $ cover/pycodestyle_py.html in your browser
91
- $ nosetests --with-coverage --cover-html -s testsuite.test_blank_lines
92
-
93
85
94
86
Running functional
95
87
~~~~~~~~~~~~~~~~~~
Original file line number Diff line number Diff line change @@ -25,9 +25,6 @@ in your project::
25
25
self.assertEqual(result.total_errors, 0,
26
26
"Found code style errors (and warnings).")
27
27
28
- If you are using ``nosetests `` for running tests, remove ``quiet=True ``
29
- since Nose suppresses stdout.
30
-
31
28
There's also a shortcut for checking a single file::
32
29
33
30
import pycodestyle
Original file line number Diff line number Diff line change @@ -215,7 +215,3 @@ def run_tests(style):
215
215
if options .testsuite :
216
216
init_tests (style )
217
217
return style .check_files ()
218
-
219
-
220
- # nose should not collect these functions
221
- init_tests .__test__ = run_tests .__test__ = False
You can’t perform that action at this time.
0 commit comments