Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hugovk/upgrade-unittest
Script to upgrade some Python unittest assert methods to be more useful
https://github.com/hugovk/upgrade-unittest
assert assertions python unittest upgrade
Last synced: 14 days ago
JSON representation
Script to upgrade some Python unittest assert methods to be more useful
- Host: GitHub
- URL: https://github.com/hugovk/upgrade-unittest
- Owner: hugovk
- Created: 2018-01-22T16:05:05.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2022-03-01T09:54:41.000Z (almost 3 years ago)
- Last Synced: 2024-12-06T17:26:58.162Z (about 1 month ago)
- Topics: assert, assertions, python, unittest, upgrade
- Language: Shell
- Size: 19.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# upgrade-unittest
[![Test](https://github.com/hugovk/upgrade-unittest/actions/workflows/test.yml/badge.svg)](https://github.com/hugovk/upgrade-unittest/actions/workflows/test.yml)
Script to upgrade some Python unittest assert methods to be more useful.
It's just a bunch of sed scripts rather than parsing the AST, and isn't
good with multiline or complex statements, so always review the output.```sh
upgrade-unittest.sh test.pyupgrade-unittest.sh *.py
upgrade-unittest.sh `find . -name "*.py"`
```## See also
* https://github.com/isidentical/teyit
* https://github.com/jparise/flake8-assertive