-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Use
pytest
for testing instead of nose
Use `pytest` for testing instead of `nose`: `nose` is no longer maintained and its successor maintainers `nose2` encourage to use `pytest` as it as a bigger team of maintainers and a larger community of users. Avoids errors that stem from using `nose` as the testing tool: ``` AttributeError: module 'collections' has no attribute 'Callable' ``` raised for example in: https://github.com/demianw/tract_querier/actions/runs/12168541455/job/33939552914#step:6:37 Documentation: https://github.com/nose-devs/nose2 https://docs.pytest.org/en/latest/
- Loading branch information
1 parent
983e359
commit a001be5
Showing
7 changed files
with
59 additions
and
64 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 |
---|---|---|
|
@@ -59,4 +59,4 @@ jobs: | |
- name: Run tests | ||
run: | | ||
nosetests -v | ||
pytest -v |
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 |
---|---|---|
|
@@ -38,7 +38,7 @@ doc = [ | |
] | ||
test = [ | ||
"coverage", | ||
"nose", | ||
"pytest", | ||
] | ||
|
||
[project.urls] | ||
|
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