Skip to content

Commit

Permalink
Black formatting pass
Browse files Browse the repository at this point in the history
  • Loading branch information
jmwright committed Jul 31, 2024
1 parent 5f1be34 commit bd074ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/cq_cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,9 @@ def main():
codec_module = active_codecs[i]

# Use the codec plugin to do the conversion
converted = codec_module.convert(build_result, outfile, errfile, output_opts)
converted = codec_module.convert(
build_result, outfile, errfile, output_opts
)

# If converted is None, assume that the output was written to file directly by the codec
if converted != None:
Expand Down
5 changes: 3 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,12 +477,13 @@ def test_multiple_outfiles():
"step;stl",
"--infile",
test_file,
"--outfile",
"--outfile",
temp_paths,
]
out, err, exitcode = helpers.cli_call(command)
assert exitcode == 0


def test_multiple_outfiles_codec_mismatch():
"""
Tests the CLI with multiple output files specified and a different number of codecs specified.
Expand All @@ -502,7 +503,7 @@ def test_multiple_outfiles_codec_mismatch():
"step",
"--infile",
test_file,
"--outfile",
"--outfile",
temp_paths,
]
out, err, exitcode = helpers.cli_call(command)
Expand Down

0 comments on commit bd074ed

Please sign in to comment.