-
Notifications
You must be signed in to change notification settings - Fork 471
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move tests out of package and into top-level directory
This follows the "Tests outside application code" pattern documented in the pytest guides. See: https://docs.pytest.org/en/7.1.x/explanation/goodpractices.html#tests-outside-application-code > This has the following benefits: > > - Your tests can run against an installed version after executing pip > install .. > > - Your tests can run against the local copy with an editable install > after executing pip install --editable .. > > - If you don’t use an editable install and are relying on the fact > that Python by default puts the current directory in sys.path to > import your package, you can execute python -m pytest to execute the > tests against the local copy directly, without using pip. This keeps tests separate from actual library code. End users don't need the tests mixed in with the installed packages. Instead, tests are only interesting to library developers and packagers. The tests remain available, just moved.
- Loading branch information
Showing
9 changed files
with
9 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
branch = True | ||
source = codespell_lib | ||
include = */codespell_lib/* | ||
omit = */codespell_lib/tests/* | ||
omit = */tests/* |
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
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
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
File renamed without changes.
File renamed without changes.
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