Skip to content

Commit 7250335

Browse files
style: apply ruff format to tests/test_remaining_coverage.py
1 parent 5ae389d commit 7250335

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

tests/test_remaining_coverage.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ def test_main_module_runs_convert_help(self):
2121
"""python -m json2sql convert --help works (covers __main__.py)."""
2222
result = subprocess.run(
2323
[sys.executable, "-m", "json2sql", "convert", "--help"],
24-
capture_output=True, text=False,
24+
capture_output=True,
25+
text=False,
2526
)
2627
assert result.returncode == 0
2728
assert b"Usage" in result.stdout
@@ -65,6 +66,7 @@ class TestMCPCommand:
6566
def test_mcp_without_click_to_mcp_raises_error(self):
6667
"""mcp subcommand without click_to_mcp shows ImportError."""
6768
import builtins
69+
6870
original_import = builtins.__import__
6971

7072
def mock_import(name, *args, **kwargs):
@@ -75,4 +77,7 @@ def mock_import(name, *args, **kwargs):
7577
with patch("builtins.__import__", mock_import):
7678
result = runner.invoke(app, ["mcp"])
7779
assert result.exit_code != 0
78-
assert "click_to_mcp" in result.output.lower() or "pip install" in result.output.lower()
80+
assert (
81+
"click_to_mcp" in result.output.lower()
82+
or "pip install" in result.output.lower()
83+
)

0 commit comments

Comments
 (0)