def test_load_data_without_rachis(app_and_window, qtbot): app_and_window[1].ui.directory.setText(DATA_FOLDER) app_and_window[1].ui.rdb_rachis_yes.setChecked(False) app_and_window[1].ui.btn_load_data.click() qtbot.waitForWindowShown(app_and_window[1]) take_screenshot('test_load_data_without_rachis.png', app_and_window[1]) app_and_window[0].quit()
def test_analysis_window_hist_groupby_1_rb_2(setup_data, qtbot): setup_data[1].analysis_controller.view.get_cb_group_by().setCurrentIndex(2) setup_data[1].analysis_controller.view.get_radio_buttons( )['width'].setChecked(True) qtbot.waitForWindowShown(setup_data[1]) take_screenshot('test_analysis_window_hist_groupby_1_rb_2.png', setup_data[1])
def test_clean_data_remove_large(setup_data, qtbot): setup_data[1].ui.expinfo.setText(EXTRA_INFO) setup_data[1].pre_process_controller.load_experimental_data() setup_data[1].pre_process_controller.ui.chk_large.setChecked(True) setup_data[1].pre_process_controller.clean_data() qtbot.waitForWindowShown(setup_data[1]) take_screenshot('test_clean_data_remove_large.png', setup_data[1])
def test_load_additional_data_expected_fail(setup_data, qtbot): setup_data[1].ui.expinfo.setText('folder/nofileshere/excel.xlsx') with pytest.raises(FileNotFoundError): setup_data[1].pre_process_controller.load_experimental_data() qtbot.waitForWindowShown(setup_data[1]) take_screenshot( 'test_load_additional_data_expected_fail.png', setup_data[1])
def test_hypothesis_ttest_g2_att_2(setup_data, qtbot): setup_data[1].ui.cb_test_attribute.setCurrentIndex(5) setup_data[1].ui.cb_test_grouping.setCurrentIndex(2) setup_data[1].ui.cb_test_g1.setCurrentIndex(0) setup_data[1].ui.cb_test_g2.setCurrentIndex(0) setup_data[1].ui.btn_test.click() qtbot.waitForWindowShown(setup_data[1]) take_screenshot('test_hypothesis_ttest_g2_att_2.png', setup_data[1])
def test_hypothesis_bayestest_g2_att_1(setup_data, qtbot): setup_data[1].ui.cb_test_attribute.setCurrentIndex(3) setup_data[1].ui.rbtn_bayes.setChecked(True) setup_data[1].ui.cb_test_grouping.setCurrentIndex(2) setup_data[1].ui.cb_test_g1.setCurrentIndex(0) setup_data[1].ui.cb_test_g2.setCurrentIndex(0) setup_data[1].ui.btn_test.click() qtbot.waitForWindowShown(setup_data[1]) take_screenshot('test_hypothesis_bayestest_g2_att_1.png', setup_data[1])
def test_analysis_window_box_rb_2(setup_data, qtbot): setup_data[1].ui.cb_graph_type.setCurrentIndex(1) setup_data[1].analysis_controller.view.get_radio_buttons( )['width'].setChecked(True) qtbot.waitForWindowShown(setup_data[1]) take_screenshot('test_analysis_window_box_rb_2.png', setup_data[1])
def test_analysis_window_hist_rb_1(setup_data, qtbot): setup_data[1].analysis_controller.view.get_radio_buttons( )['volume'].setChecked(True) qtbot.waitForWindowShown(setup_data[1]) take_screenshot('test_analysis_window_hist_rb_1.png', setup_data[1])
def test_analysis_window_loads(setup_data, qtbot): qtbot.waitForWindowShown(setup_data[1]) take_screenshot('test_analysis_window_loads.png', setup_data[1])
def test_load_additional_data(setup_data, qtbot): setup_data[1].ui.expinfo.setText(EXTRA_INFO) setup_data[1].pre_process_controller.load_experimental_data() qtbot.waitForWindowShown(setup_data[1]) take_screenshot('test_load_additional_data.png', setup_data[1])