Skip to content

Commit 27d2add

Browse files
authored
Merge pull request #1175 from PyCQA/move-tests
move testsuite -> tests
2 parents 7c04190 + c8c388e commit 27d2add

21 files changed

+22
-32
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
testsuite/E90.py -text
1+
testing/data/E90.py -text

CONTRIBUTING.rst

Lines changed: 3 additions & 3 deletions
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

Lines changed: 0 additions & 10 deletions
This file was deleted.

README.rst

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 9 additions & 9 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

0 commit comments

Comments
 (0)