-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from jamescooke/doc-improvements
Documentation improvements
- Loading branch information
Showing
4 changed files
with
43 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,29 @@ | ||
Test discovery | ||
============== | ||
|
||
* Filename must start with ``test_`` and have been collected for linting by | ||
``flake8``. | ||
The ``flake8-aaa`` plugin is triggered for files that look to it like test | ||
modules - anything that does not look like a test module is skipped. | ||
|
||
* Test must be a function or class method. | ||
The following rules are applied by ``flake8-aaa`` when discovering tests: | ||
|
||
* Test names must start with ``test``. | ||
* The module's filename must start with "test\_" and have been collected for | ||
linting by Flake8. | ||
|
||
* Tests that contain only comments, docstrings or ``pass`` are skipped. | ||
* Every function in the module that has a name that starts with "test" is | ||
checked. | ||
|
||
* Test functions can be class methods. | ||
|
||
* Test functions that contain only comments, docstrings or ``pass`` are | ||
skipped. | ||
|
||
These rules are aimed to mirror pytest's default collection strategy as closely | ||
as possible. | ||
|
||
If you find that ``flake8-aaa`` is giving false positives (you have checks that | ||
you expected to fail, but they did not), then you should check that the plugin | ||
did not ignore or skip those tests which you expected to fail. | ||
|
||
.. note:: | ||
|
||
``flake8-aaa`` does not check doctests. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
Welcome to Flake8-AAA's documentation! | ||
====================================== | ||
Welcome to Flake8-AAA's documentation | ||
===================================== | ||
|
||
.. include:: ../README.rst | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Contents: | ||
:caption: Contents | ||
|
||
discovery | ||
rules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters