Skip to content

Commit

Permalink
Fix tests - supply default arg for no_diff on run_black + pass bool t…
Browse files Browse the repository at this point in the history
…o async_main
  • Loading branch information
cooperlees committed May 3, 2021
1 parent a765c70 commit 6a3effd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/black_primer/lib.py
Expand Up @@ -115,7 +115,7 @@ async def black_run(
repo_path: Path,
project_config: Dict[str, Any],
results: Results,
no_diff: bool,
no_diff: bool = False,
) -> None:
"""Run Black and record failures"""
cmd = [str(which(BLACK_BINARY))]
Expand Down
1 change: 1 addition & 0 deletions tests/test_primer.py
Expand Up @@ -198,6 +198,7 @@ def test_async_main(self) -> None:
"rebase": False,
"workdir": str(work_dir),
"workers": 69,
"no_diff": False,
}
with patch("black_primer.cli.lib.process_queue", return_zero):
return_val = loop.run_until_complete(cli.async_main(**args))
Expand Down

0 comments on commit 6a3effd

Please sign in to comment.