File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 3636RAW = unhexlify (HEX .encode ('ascii' ))
3737
3838
39- def test_raw ():
39+ def test_raw () -> None :
4040 oid = Oid (raw = RAW )
4141 assert oid .raw == RAW
4242 assert oid == HEX
4343
4444
45- def test_hex ():
45+ def test_hex () -> None :
4646 oid = Oid (hex = HEX )
4747 assert oid .raw == RAW
4848 assert oid == HEX
4949
5050
51- def test_hex_bytes ():
51+ def test_hex_bytes () -> None :
5252 hex = bytes (HEX , 'ascii' )
5353 with pytest .raises (TypeError ):
54- Oid (hex = hex )
54+ Oid (hex = hex ) # type: ignore
5555
5656
57- def test_none ():
57+ def test_none () -> None :
5858 with pytest .raises (ValueError ):
5959 Oid ()
6060
6161
62- def test_both ():
62+ def test_both () -> None :
6363 with pytest .raises (ValueError ):
6464 Oid (raw = RAW , hex = HEX )
6565
6666
67- def test_long ():
67+ def test_long () -> None :
6868 with pytest .raises (ValueError ):
6969 Oid (raw = RAW + b'a' )
7070 with pytest .raises (ValueError ):
7171 Oid (hex = HEX + 'a' )
7272
7373
74- def test_cmp ():
74+ def test_cmp () -> None :
7575 oid1 = Oid (raw = RAW )
7676
7777 # Equal
@@ -90,7 +90,7 @@ def test_cmp():
9090 assert not oid1 >= oid2
9191
9292
93- def test_hash ():
93+ def test_hash () -> None :
9494 s = set ()
9595 s .add (Oid (raw = RAW ))
9696 s .add (Oid (hex = HEX ))
@@ -101,7 +101,7 @@ def test_hash():
101101 assert len (s ) == 3
102102
103103
104- def test_bool ():
104+ def test_bool () -> None :
105105 assert Oid (raw = RAW )
106106 assert Oid (hex = HEX )
107107 assert not Oid (raw = b'' )
You can’t perform that action at this time.
0 commit comments