File tree 2 files changed +17
-0
lines changed
integration_tests/tests_v93/keys 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ def test_keys(self):
22
22
get_keys
23
23
)
24
24
25
+ self .assertEqual (
26
+ self .gitlab .getsshkey (1 ),
27
+ get_keys
28
+ )
29
+
25
30
@responses .activate
26
31
def test_keys_with_bad_data (self ):
27
32
responses .add (
@@ -40,4 +45,7 @@ def test_keys_with_bad_data(self):
40
45
# Don't raise exception when suppress http error is True
41
46
self .gitlab .suppress_http_error = True
42
47
self .assertFalse (self .gitlab .keys (1 ))
48
+
49
+ # Deprecated version test
50
+ self .assertFalse (self .gitlab .getsshkey (1 ))
43
51
self .gitlab .suppress_http_error = False
Original file line number Diff line number Diff line change @@ -14,3 +14,12 @@ def test_get(self):
14
14
HTTPError ,
15
15
self .gitlab .keys , 100
16
16
)
17
+
18
+ def test_getsshkey (self ):
19
+ self .assertEqual (
20
+ get_keys .keys (),
21
+ self .gitlab .getsshkey (1 ).keys ())
22
+
23
+ self .gitlab .suppress_http_error = True
24
+ self .assertFalse (self .gitlab .getsshkey (100 ))
25
+ self .gitlab .suppress_http_error = False
You can’t perform that action at this time.
0 commit comments