@@ -23,9 +23,9 @@ def test_basic_build(example_pkg):
2323 spin ("build" )
2424
2525 assert Path ("build" ).exists (), "`build` folder not created after `spin build`"
26- assert Path (
27- "build-install"
28- ). exists (), "`build-install` folder not created after `spin build`"
26+ assert Path ("build-install" ). exists (), (
27+ "` build-install` folder not created after `spin build` "
28+ )
2929
3030
3131def test_debug_builds (example_pkg ):
@@ -64,17 +64,17 @@ def test_coverage_reports(example_pkg, report_type, output_file):
6464 spin ("test" , "--gcov" , f"--gcov-format={ report_type } " )
6565
6666 coverage_report = Path ("./build/meson-logs" , output_file )
67- assert (
68- coverage_report . exists ()
69- ), f"coverage report not generated for gcov build ( { report_type } )"
67+ assert coverage_report . exists (), (
68+ f"coverage report not generated for gcov build ( { report_type } )"
69+ )
7070
7171
7272def test_expand_pythonpath (example_pkg ):
7373 """Does an $ENV_VAR get expanded in `spin run`?"""
7474 output = spin ("run" , "echo $PYTHONPATH" )
75- assert any (
76- p in stdout (output ) for p in ( "site-packages" , "dist-packages" )
77- ), f"Expected value of $PYTHONPATH, got { stdout ( output ) } instead"
75+ assert any (p in stdout ( output ) for p in ( "site-packages" , "dist-packages" )), (
76+ f"Expected value of $PYTHONPATH, got { stdout (output )} instead"
77+ )
7878
7979
8080def test_run_stdout (example_pkg ):
@@ -85,9 +85,9 @@ def test_run_stdout(example_pkg):
8585 "-c" ,
8686 "import sys; del sys.path[0]; import example_pkg; print(example_pkg.__version__)" ,
8787 )
88- assert (
89- stdout (p ) == "0.0.0dev0 "
90- ), f"`spin run` stdout did not yield version, but { stdout ( p ) } "
88+ assert stdout ( p ) == "0.0.0dev0" , (
89+ f"`spin run` stdout did not yield version, but { stdout (p )} "
90+ )
9191
9292
9393# Detecting whether a file is executable is not that easy on Windows,
@@ -97,9 +97,9 @@ def test_recommend_run_python(example_pkg):
9797 """If `spin run file.py` is called, is `spin run python file.py` recommended?"""
9898 with tempfile .NamedTemporaryFile (suffix = ".py" ) as f :
9999 p = spin ("run" , f .name , sys_exit = False )
100- assert "Did you mean to call" in stdout (
101- p
102- ), "Failed to recommend `python run python file.py`"
100+ assert "Did you mean to call" in stdout (p ), (
101+ "Failed to recommend `python run python file.py`"
102+ )
103103
104104
105105def test_sdist (example_pkg ):
0 commit comments