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:
parent
b5d24f9efb
commit
cd50fdf7ee
4 changed files with 58 additions and 16 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue