Skip to content

Commit c8c388e

Browse files
committed
move testsuite -> tests
1 parent 7c04190 commit c8c388e

21 files changed

+22
-32
lines changed

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
testsuite/E90.py -text
1+
testing/data/E90.py -text

CONTRIBUTING.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,16 @@ include unit, integration and functional tests.
8282

8383
To run the tests::
8484

85-
$ pytest testsuite
85+
$ pytest tests
8686

8787
Running functional
8888
~~~~~~~~~~~~~~~~~~
8989

9090
$ pip install -e .
9191
$ # Run all tests.
92-
$ pytest testsuite
92+
$ pytest tests/test_data.py
9393
$ # Run a subset of the tests.
94-
$ pytest testsuite -k testing/data/E30.py
94+
$ pytest tests/tests_data.py -k testing/data/E30.py
9595

9696

9797
.. _virtualenv: http://docs.python-guide.org/en/latest/dev/virtualenvs/

MANIFEST.in

-10
This file was deleted.

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ Example usage and output
7272
You can also make ``pycodestyle.py`` show the source code for each error, and
7373
even the relevant text from PEP 8::
7474

75-
$ pycodestyle --show-source --show-pep8 testsuite/E40.py
76-
testsuite/E40.py:2:10: E401 multiple imports on one line
75+
$ pycodestyle --show-source --show-pep8 testing/data/E40.py
76+
testing/data/E40.py:2:10: E401 multiple imports on one line
7777
import os, sys
7878
^
7979
Imports should usually be on separate lines.

docs/advanced.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ There's also a shortcut for checking a single file::
2929

3030
import pycodestyle
3131

32-
fchecker = pycodestyle.Checker('testsuite/E27.py', show_source=True)
32+
fchecker = pycodestyle.Checker('tests/data/E27.py', show_source=True)
3333
file_errors = fchecker.check_all()
3434

3535
print("Found %s errors (and warnings)" % file_errors)

docs/developer.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ the docstring, you can use ``\n`` for newline and ``\t`` for tab.
9797

9898
Then be sure to pass the tests::
9999

100-
$ pytest testsuite
100+
$ pytest tests
101101
$ python pycodestyle.py --verbose pycodestyle.py
102102

103103
When contributing to pycodestyle, please observe our `Code of Conduct`_.

docs/intro.rst

+9-9
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ Example usage and output
7878
You can also make ``pycodestyle.py`` show the source code for each error, and
7979
even the relevant text from PEP 8::
8080

81-
$ pycodestyle --show-source --show-pep8 testsuite/E40.py
82-
testsuite/E40.py:2:10: E401 multiple imports on one line
81+
$ pycodestyle --show-source --show-pep8 testing/data/E40.py
82+
testing/data/E40.py:2:10: E401 multiple imports on one line
8383
import os, sys
8484
^
8585
Imports should usually be on separate lines.
@@ -105,14 +105,14 @@ Or you can display how often each error was found::
105105
You can also make ``pycodestyle.py`` show the error text in different formats by
106106
using ``--format`` having options default/pylint/custom::
107107

108-
$ pycodestyle testsuite/E40.py --format=default
109-
testsuite/E40.py:2:10: E401 multiple imports on one line
108+
$ pycodestyle testing/data/E40.py --format=default
109+
testing/data/E40.py:2:10: E401 multiple imports on one line
110110

111-
$ pycodestyle testsuite/E40.py --format=pylint
112-
testsuite/E40.py:2: [E401] multiple imports on one line
111+
$ pycodestyle testing/data/E40.py --format=pylint
112+
testing/data/E40.py:2: [E401] multiple imports on one line
113113

114-
$ pycodestyle testsuite/E40.py --format='%(path)s|%(row)d|%(col)d| %(code)s %(text)s'
115-
testsuite/E40.py|2|10| E401 multiple imports on one line
114+
$ pycodestyle testing/data/E40.py --format='%(path)s|%(row)d|%(col)d| %(code)s %(text)s'
115+
testing/data/E40.py|2|10| E401 multiple imports on one line
116116

117117
Variables in the ``custom`` format option
118118

@@ -433,7 +433,7 @@ special comment. This possibility should be reserved for special cases.
433433

434434
Note: most errors can be listed with such one-liner::
435435

436-
$ python pycodestyle.py --first --select E,W testsuite/ --format '%(code)s: %(text)s'
436+
$ python pycodestyle.py --first --select E,W testing/data --format '%(code)s: %(text)s'
437437

438438

439439
.. _related-tools:

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ max_doc_length = 72
4747

4848
[coverage:run]
4949
plugins = covdefaults
50-
omit = testsuite/data
50+
omit = testing/data
5151

5252
[coverage:report]
5353
fail_under = 93
File renamed without changes.

testsuite/test_E101.py renamed to tests/test_E101.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""moved from testsuite files due to 3.12 making this a TokenError"""
1+
"""moved from data files due to 3.12 making this a TokenError"""
22
import sys
33
import unittest
44

testsuite/test_E901.py renamed to tests/test_E901.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""moved from testsuite files due to 3.12 changing syntax errors"""
1+
"""moved from data files due to 3.12 changing syntax errors"""
22
import sys
33
import unittest
44

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

testsuite/test_shell.py renamed to tests/test_shell.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def test_check_diff(self):
194194
))
195195

196196
# no matching file in the diff
197-
diff_lines[3] = "+++ b/testsuite/lost/E11.py"
197+
diff_lines[3] = "+++ b/testing/lost/E11.py"
198198
self.stdin = '\n'.join(diff_lines)
199199
stdout, stderr, errcode = self.pycodestyle('--diff')
200200
self.assertFalse(errcode)
File renamed without changes.

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ deps =
1414
pytest
1515
commands =
1616
python -m pycodestyle --statistics pycodestyle.py
17-
coverage run -m pytest testsuite
17+
coverage run -m pytest tests
1818
coverage report
1919

2020
[testenv:flake8]

0 commit comments

Comments
 (0)