@@ -55,11 +55,15 @@ def test_ecdsa_sk_b(self, completion):
55
55
assert not completion
56
56
57
57
@pytest .mark .complete ("ssh-keygen -O " )
58
- def test_O (self , completion ):
58
+ def test_bare_O (self , completion ):
59
+ assert not completion
60
+
61
+ @pytest .mark .complete ("ssh-keygen -s -O " )
62
+ def test_s_O (self , completion ):
59
63
assert completion
60
64
assert any (x .endswith ("=" ) for x in completion )
61
65
62
- @pytest .mark .complete ("ssh-keygen -O force-command=bas" )
66
+ @pytest .mark .complete ("ssh-keygen -s - O force-command=bas" )
63
67
def test_O_force_command (self , completion ):
64
68
assert completion
65
69
assert not completion .startswith ("force-command=" )
@@ -68,18 +72,20 @@ def test_O_force_command(self, completion):
68
72
def test_O_unknown (self , completion ):
69
73
assert not completion
70
74
71
- @pytest .mark .complete ("ssh-keygen -O application=" )
75
+ @pytest .mark .complete ("ssh-keygen -t ed25519-sk - O application=" )
72
76
def test_O_application (self , completion ):
73
77
assert completion == "ssh:"
74
78
75
- @pytest .mark .complete ("ssh-keygen -O application=s" )
79
+ @pytest .mark .complete ("ssh-keygen -t ed25519-sk - O application=s" )
76
80
def test_O_application_s (self , completion ):
77
81
assert completion == "sh:"
78
82
79
- @pytest .mark .complete ("ssh-keygen -O application=ssh:" )
83
+ @pytest .mark .complete ("ssh-keygen -t ed25519-sk - O application=ssh:" )
80
84
def test_O_application_ssh_colon (self , completion ):
81
85
assert not completion
82
86
83
- @pytest .mark .complete ("ssh-keygen -O application=nonexistent" )
87
+ @pytest .mark .complete (
88
+ "ssh-keygen -t ed25519-sk -O application=nonexistent"
89
+ )
84
90
def test_O_application_nonexistent (self , completion ):
85
91
assert not completion
0 commit comments