@@ -358,9 +358,11 @@ def test_get_tx_bias_support(self, mock_response, expected):
358358 assert result == expected
359359
360360 @pytest .mark .parametrize ("mock_response, expected" , [
361- ([True , 2 , {'TxBias1' : 2 }], {'TxBias1' : 8 }),
362- ([True , 3 , {'TxBias1' : 2 }], {'TxBias1' : 2 }),
363- ([False , 0 , {'TxBias1' : 0 }], ['N/A' ,'N/A' ,'N/A' ,'N/A' ,'N/A' ,'N/A' ,'N/A' ,'N/A' ]),
361+ ([True , 2 , {'LaserBiasTx1Field' : 2 , 'LaserBiasTx2Field' : 2 , 'LaserBiasTx3Field' : 2 , 'LaserBiasTx4Field' : 2 , 'LaserBiasTx5Field' : 2 , 'LaserBiasTx6Field' : 2 , 'LaserBiasTx7Field' : 2 , 'LaserBiasTx8Field' : 2 }],
362+ [8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 ]),
363+ ([True , 3 , {'LaserBiasTx1Field' : 2 , 'LaserBiasTx2Field' : 2 , 'LaserBiasTx3Field' : 2 , 'LaserBiasTx4Field' : 2 , 'LaserBiasTx5Field' : 2 , 'LaserBiasTx6Field' : 2 , 'LaserBiasTx7Field' : 2 , 'LaserBiasTx8Field' : 2 }],
364+ [2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 ]),
365+ ([False , 0 , {'LaserBiasTx1Field' : 0 }], ['N/A' ,'N/A' ,'N/A' ,'N/A' ,'N/A' ,'N/A' ,'N/A' ,'N/A' ]),
364366 ([None , 0 , None ], None )
365367 ])
366368 def test_get_tx_bias (self , mock_response , expected ):
@@ -1221,10 +1223,7 @@ def test_get_transceiver_info(self, mock_response, expected):
12211223 0 ,
12221224 50 ,
12231225 3.3 ,
1224- {'LaserBiasTx1Field' : 70 , 'LaserBiasTx2Field' : 70 ,
1225- 'LaserBiasTx3Field' : 70 , 'LaserBiasTx4Field' : 70 ,
1226- 'LaserBiasTx5Field' : 70 , 'LaserBiasTx6Field' : 70 ,
1227- 'LaserBiasTx7Field' : 70 , 'LaserBiasTx8Field' : 70 },
1226+ [70 , 70 , 70 , 70 , 70 , 70 , 70 , 70 ],
12281227 [0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 ],
12291228 [0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 ],
12301229 True , True , True , True , True , True ,
0 commit comments