Skip to content

Commit

Permalink
test: complete tests for new arg in cli
Browse files Browse the repository at this point in the history
  • Loading branch information
MarieS-WiMLDS committed Dec 19, 2024
1 parent 505f2b4 commit 817f137
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions skore/tests/unit/cli/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,18 @@ def test_cli_launch(monkeypatch):
launch_project_name = None
launch_port = None
launch_open_browser = None
launch_verbose = None

def fake_launch(project_name, port, open_browser):
def fake_launch(project_name, port, open_browser, verbose):
nonlocal launch_project_name
nonlocal launch_port
nonlocal launch_open_browser

nonlocal launch_verbose

launch_project_name = project_name
launch_port = port
launch_open_browser = open_browser
launch_verbose = verbose

monkeypatch.setattr("skore.cli.cli.__launch", fake_launch)
cli(["launch", "project.skore", "--port", "0", "--no-open-browser"])
Expand Down

0 comments on commit 817f137

Please sign in to comment.