@@ -202,6 +202,7 @@ def test_sixel_rebaseline_on_large_change():
202202 assert "\033 P0;1;0q" in text
203203 assert "\033 \\ " in text
204204
205+
205206class TestAutoScale :
206207 @staticmethod
207208 def test_fps_below_threshold_reduces ():
@@ -311,12 +312,15 @@ def test_disabled(self, value):
311312
312313 assert parse_autoscale (value ).enabled is False
313314
314- @pytest .mark .parametrize ("value,seconds,fps,mbits" , [
315- ("30fps" , - 1 , 30.0 , 0.0 ),
316- ("60s,30fps,10mb" , 60 , 30.0 , 80.0 ),
317- ("1500kb" , - 1 , 40.0 , 12.0 ),
318- ("always,25fps" , - 1 , 25.0 , 0.0 ),
319- ])
315+ @pytest .mark .parametrize (
316+ "value,seconds,fps,mbits" ,
317+ [
318+ ("30fps" , - 1 , 30.0 , 0.0 ),
319+ ("60s,30fps,10mb" , 60 , 30.0 , 80.0 ),
320+ ("1500kb" , - 1 , 40.0 , 12.0 ),
321+ ("always,25fps" , - 1 , 25.0 , 0.0 ),
322+ ],
323+ )
320324 def test_parse (self , value , seconds , fps , mbits ):
321325 from gambaterm .graphics_scaler import parse_autoscale
322326
@@ -326,11 +330,14 @@ def test_parse(self, value, seconds, fps, mbits):
326330 assert cfg .fps == fps
327331 assert cfg .bandwidth_mbits == mbits
328332
329- @pytest .mark .parametrize ("value" , [
330- "always,90s,30fps" ,
331- "disabled,90s,10mb" ,
332- "off,30fps" ,
333- ])
333+ @pytest .mark .parametrize (
334+ "value" ,
335+ [
336+ "always,90s,30fps" ,
337+ "disabled,90s,10mb" ,
338+ "off,30fps" ,
339+ ],
340+ )
334341 def test_mutually_exclusive_errors (self , value ):
335342 from gambaterm .graphics_scaler import parse_autoscale
336343
0 commit comments