-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test helpers, rewrite integration tests (#100)
* Add test helpers, rewrite integration tests * Remove custom proctest, use tmp_path pytest fixture * Fix linting and tests * set shell=True when args is a str * Add tmp_run fixture Reduces the boilerplate of having to specify cwd every time when commands are 99% of the time run in the tmp_path. * Add typing for tmp_run * Use typing_extensions for Protocol Protocol was only introduced in Python 3.8. typing_extensions makes it available for older Pythons. * Remove unused fixtures Co-authored-by: Brett Langdon <me@brett.is> Co-authored-by: Brett Langdon <me@brett.is>
- Loading branch information
1 parent
6d064ca
commit 5ad6e6d
Showing
3 changed files
with
541 additions
and
86 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 |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
"pytest": latest, | ||
"pytest-cov": latest, | ||
"mock": latest, | ||
"typing-extensions": latest, | ||
}, | ||
), | ||
Venv( | ||
|
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
Oops, something went wrong.