1
0
Fork 0

Add diff logic to python format subcommand (#15156)

* Add diff logic to python format subcommand

* Update test

* Add in filter per format-c

* fix tests

* Update new workflow
This commit is contained in:
Joel Challis 2021-11-17 23:02:45 +00:00 committed by GitHub
parent b5d24f9efb
commit cd50fdf7ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 58 additions and 16 deletions

View file

@ -81,9 +81,9 @@ def test_hello():
def test_format_python():
result = check_subcommand('format-python', '--dry-run')
result = check_subcommand('format-python', '-n', '-a')
check_returncode(result)
assert 'Python code in `bin/qmk` and `lib/python` is correctly formatted.' in result.stdout
assert 'Successfully formatted the python code.' in result.stdout
def test_list_keyboards():