@@ -274,40 +274,40 @@ def test_calculate_index_factors(
274274 )
275275
276276
277- def test_add_indexes (
278- qtbot : QtBot ,
279- expected_loss : ExpectedLossWidget
280- ) -> None :
281- """
282- Tests the adding of an index to a model via the index inventory.
283-
284- :param qtbot: The QtBot fixture.
285- :param expected_loss: The expected_loss fixture.
286- :return: None
287- """
288-
289- def handle_dialog ():
290-
291- dialog : IndexInventory = QApplication .activeWindow ()
292-
293- qtbot .addWidget (dialog )
294-
295- qtbot .mouseClick (
296- dialog .button_box .button (dialog .button_box .ok_button ),
297- Qt .MouseButton .LeftButton ,
298- delay = 1
299- )
300-
301- index_tab : ExpectedLossIndex = expected_loss .main_tabs .widget (0 )
302-
303- # Add a single premium index.
304- QTimer .singleShot (
305- 500 ,
306- handle_dialog
307- )
308-
309- qtbot .mouseClick (
310- index_tab .index_selector .premium_indexes .add_remove_btns .add_btn ,
311- Qt .MouseButton .LeftButton ,
312- delay = 1
313- )
277+ # def test_add_indexes(
278+ # qtbot: QtBot,
279+ # expected_loss: ExpectedLossWidget
280+ # ) -> None:
281+ # """
282+ # Tests the adding of an index to a model via the index inventory.
283+ #
284+ # :param qtbot: The QtBot fixture.
285+ # :param expected_loss: The expected_loss fixture.
286+ # :return: None
287+ # """
288+ #
289+ # def handle_dialog():
290+ #
291+ # dialog: IndexInventory = QApplication.activeWindow()
292+ #
293+ # qtbot.addWidget(dialog)
294+ #
295+ # qtbot.mouseClick(
296+ # dialog.button_box.button(dialog.button_box.ok_button),
297+ # Qt.MouseButton.LeftButton,
298+ # delay=1
299+ # )
300+ #
301+ # index_tab: ExpectedLossIndex = expected_loss.main_tabs.widget(0)
302+ #
303+ # # Add a single premium index.
304+ # QTimer.singleShot(
305+ # 500,
306+ # handle_dialog
307+ # )
308+ #
309+ # qtbot.mouseClick(
310+ # index_tab.index_selector.premium_indexes.add_remove_btns.add_btn,
311+ # Qt.MouseButton.LeftButton,
312+ # delay=1
313+ # )
0 commit comments