Skip to content

Commit e66c320

Browse files
committed
update powershell tests, in new version of cobra the completion file is different
1 parent d4fd8a8 commit e66c320

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_completion.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ def test_completion_powershell(run_command):
4949
result = run_command("completion powershell")
5050
assert result.ok
5151
assert result.stderr == ""
52-
assert "Register-ArgumentCompleter -Native -CommandName 'arduino-cli' -ScriptBlock {" in result.stdout
53-
assert "'arduino-cli;completion' {" in result.stdout
52+
assert "# powershell completion for arduino-cli" in result.stdout
53+
assert "Register-ArgumentCompleter -CommandName 'arduino-cli' -ScriptBlock" in result.stdout
5454

5555

5656
def test_completion_bash_no_desc(run_command):

0 commit comments

Comments
 (0)