@@ -358,9 +358,11 @@ def test_get_tx_bias_support(self, mock_response, expected):
358
358
assert result == expected
359
359
360
360
@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' ]),
364
366
([None , 0 , None ], None )
365
367
])
366
368
def test_get_tx_bias (self , mock_response , expected ):
@@ -1221,10 +1223,7 @@ def test_get_transceiver_info(self, mock_response, expected):
1221
1223
0 ,
1222
1224
50 ,
1223
1225
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 ],
1228
1227
[0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 ],
1229
1228
[0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 , 0.1 ],
1230
1229
True , True , True , True , True , True ,
0 commit comments