Skip to content

Commit d28bc0b

Browse files
committed
TEST: Temporarily disable add indexes test.
1 parent 3e7d932 commit d28bc0b

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed

faslr/tests/index/test_index.py

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)