1818class TestKeyProviderOptions :
1919 """Tests for KeyProviderOptions dataclass."""
2020
21- def test_default_values (self ):
21+ def test_default_values (self ) -> None :
2222 """Test that KeyProviderOptions has correct default values."""
2323 from livekit .rtc .e2ee import (
2424 KeyProviderOptions ,
@@ -38,7 +38,7 @@ def test_default_values(self):
3838 assert options .key_ring_size == DEFAULT_KEY_RING_SIZE
3939 assert options .key_derivation_function == proto_e2ee .KeyDerivationFunction .PBKDF2
4040
41- def test_custom_values (self ):
41+ def test_custom_values (self ) -> None :
4242 """Test KeyProviderOptions with custom values."""
4343 from livekit .rtc .e2ee import KeyProviderOptions
4444 from livekit .rtc ._proto import e2ee_pb2 as proto_e2ee
@@ -59,7 +59,7 @@ def test_custom_values(self):
5959 assert options .key_ring_size == 8
6060 assert options .key_derivation_function == proto_e2ee .KeyDerivationFunction .HKDF
6161
62- def test_various_key_lengths (self ):
62+ def test_various_key_lengths (self ) -> None :
6363 """Test that shared_key accepts various lengths."""
6464 from livekit .rtc .e2ee import KeyProviderOptions
6565
@@ -85,7 +85,7 @@ def test_various_key_lengths(self):
8585class TestE2EEOptions :
8686 """Tests for E2EEOptions dataclass."""
8787
88- def test_default_values (self ):
88+ def test_default_values (self ) -> None :
8989 """Test E2EEOptions default values."""
9090 from livekit .rtc .e2ee import E2EEOptions , KeyProviderOptions
9191 from livekit .rtc ._proto import e2ee_pb2 as proto_e2ee
@@ -95,7 +95,7 @@ def test_default_values(self):
9595 assert isinstance (options .key_provider_options , KeyProviderOptions )
9696 assert options .encryption_type == proto_e2ee .EncryptionType .GCM
9797
98- def test_with_shared_key (self ):
98+ def test_with_shared_key (self ) -> None :
9999 """Test E2EEOptions with a shared key."""
100100 from livekit .rtc .e2ee import E2EEOptions , KeyProviderOptions
101101
@@ -108,7 +108,7 @@ def test_with_shared_key(self):
108108class TestProtoMessageBuilding :
109109 """Tests for proto message building with E2EE options."""
110110
111- def test_proto_key_provider_options_fields (self ):
111+ def test_proto_key_provider_options_fields (self ) -> None :
112112 """Test that proto KeyProviderOptions has all required fields."""
113113 from livekit .rtc ._proto import e2ee_pb2 as proto_e2ee
114114
@@ -130,7 +130,7 @@ def test_proto_key_provider_options_fields(self):
130130 assert proto_options .key_ring_size == 16
131131 assert proto_options .key_derivation_function == proto_e2ee .KeyDerivationFunction .PBKDF2
132132
133- def test_proto_serialization (self ):
133+ def test_proto_serialization (self ) -> None :
134134 """Test that proto message can be serialized without errors."""
135135 from livekit .rtc ._proto import e2ee_pb2 as proto_e2ee
136136
@@ -151,7 +151,7 @@ def test_proto_serialization(self):
151151 assert parsed .key_ring_size == 16
152152 assert parsed .key_derivation_function == proto_e2ee .KeyDerivationFunction .PBKDF2
153153
154- def test_e2ee_options_proto_serialization (self ):
154+ def test_e2ee_options_proto_serialization (self ) -> None :
155155 """Test full E2eeOptions proto serialization."""
156156 from livekit .rtc ._proto import e2ee_pb2 as proto_e2ee
157157
@@ -174,23 +174,23 @@ def test_e2ee_options_proto_serialization(self):
174174class TestPublicExports :
175175 """Tests for public API exports."""
176176
177- def test_key_derivation_function_exported (self ):
177+ def test_key_derivation_function_exported (self ) -> None :
178178 """Test that KeyDerivationFunction is exported from the package."""
179179 from livekit .rtc import KeyDerivationFunction
180180
181181 # Verify enum values are accessible
182182 assert KeyDerivationFunction .PBKDF2 == 0
183183 assert KeyDerivationFunction .HKDF == 1
184184
185- def test_encryption_type_exported (self ):
185+ def test_encryption_type_exported (self ) -> None :
186186 """Test that EncryptionType is exported from the package."""
187187 from livekit .rtc import EncryptionType
188188
189189 assert EncryptionType .NONE == 0
190190 assert EncryptionType .GCM == 1
191191 assert EncryptionType .CUSTOM == 2
192192
193- def test_e2ee_classes_exported (self ):
193+ def test_e2ee_classes_exported (self ) -> None :
194194 """Test that E2EE classes are exported from the package."""
195195 from livekit .rtc import E2EEOptions , KeyProviderOptions
196196
0 commit comments