Skip to content

Commit 624a13d

Browse files
committed
style: apply black and isort to tests directory
1 parent 676eaf7 commit 624a13d

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

tests/test_package.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,29 @@
55
def test_import():
66
"""Test that the package can be imported."""
77
import stylometry
8+
89
assert hasattr(stylometry, "main")
910
assert hasattr(stylometry, "__version__")
1011

1112

1213
def test_version():
1314
"""Test that version is a valid string."""
1415
from stylometry import __version__
16+
1517
assert isinstance(__version__, str)
1618
assert len(__version__.split(".")) >= 2
1719

1820

1921
def test_cli_help(capsys):
2022
"""Test that CLI help works."""
21-
from stylometry import main
2223
import sys
23-
24+
25+
from stylometry import main
26+
2427
# Capture the help output
2528
with pytest.raises(SystemExit) as exc_info:
2629
main(["--help"])
27-
30+
2831
assert exc_info.value.code == 0
2932
captured = capsys.readouterr()
3033
assert "stylometric" in captured.out.lower() or "corpus" in captured.out.lower()

0 commit comments

Comments
 (0)