File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ configure = "scikit_build_cli.commands.configure:configure"
67
67
dynamic-metadata = " scikit_build_cli.commands.dynamic_metadata:dynamic_metadata"
68
68
metadata = " scikit_build_cli.commands.metadata:metadata"
69
69
install = " scikit_build_cli.commands.install:install"
70
+ new = " scikit_build_cli.commands.new:new"
71
+ init = " scikit_build_cli.commands.init:init"
70
72
71
73
[tool .hatch ]
72
74
version.source = " vcs"
Original file line number Diff line number Diff line change 2
2
3
3
import importlib .metadata
4
4
5
+ import pytest
5
6
from click .testing import CliRunner
6
7
7
8
import scikit_build_cli
@@ -14,9 +15,15 @@ def test_version() -> None:
14
15
)
15
16
16
17
17
- def test_help_text () -> None :
18
+ @pytest .mark .parametrize ("flag" , ["--help" , "-h" ])
19
+ def test_help_text (flag : str ) -> None :
18
20
runner = CliRunner ()
19
- result = runner .invoke (scikit_build_cli .__main__ .skbuild , ["--help" ])
21
+ result = runner .invoke (scikit_build_cli .__main__ .skbuild , [flag ])
20
22
assert result .exit_code == 0
21
23
assert "Run CMake build step" in result .output
22
24
assert "Run CMake configure step" in result .output
25
+ assert "Get the generated dynamic metadata" in result .output
26
+ assert "Run CMake install step" in result .output
27
+ assert "Write out the project's metadata" in result .output
28
+ assert "Start a new project" in result .output
29
+ assert "Add scikit-build to an existing project" in result .output
You can’t perform that action at this time.
0 commit comments