tests.interface.ui package

Submodules

tests.interface.ui.test_errorwindow module

class tests.interface.ui.test_errorwindow.TestErrorWindow[source]

Bases: object

Tests for the ErrorWindow class.

test_init(qtbot)[source]

Tests the button connection to method.

test_ok_clicked(qtbot)[source]

Test of the button to close the error window.

test_set_message(qtbot)[source]

Tests the set_message() method.

tests.interface.ui.test_inputwindow module

class tests.interface.ui.test_inputwindow.TestInputWindow[source]

Bases: object

Tests for the InputWindow class.

test_apply_clicked_invalid_data(qtbot, monkeypatch)[source]

Tests the apply_clicked method with invalid input data.

test_apply_clicked_valid_data(qtbot, monkeypatch)[source]

Tests the apply_clicked method with valid input data.

test_cancel_clicked(qtbot)[source]

Tests the method to cancel and close the input window.

test_init(qtbot)[source]

Tests the types of attributes and the buttons connection to methods.

test_initialize_data(qtbot)[source]

Tests the method to initialize data in the input window.

test_raise_error(qtbot, monkeypatch)[source]

Tests the method to raise an error message.

tests.interface.ui.test_mainwindow module

class tests.interface.ui.test_mainwindow.TestMainWindow[source]

Bases: object

Tests for the MainWindow class.

test_calculate_clicked(qtbot)[source]

Tests the calculate_clicked method to ensure calculations are performed and plot window is displayed.

test_exit_clicked(qtbot)[source]

Test of the button to close the main window.

test_init(qtbot)[source]

Tests the types of attributes and the buttons connection to methods.

test_input_clicked(mock_input_window, qtbot)[source]

Tests the input_clicked method to ensure the input window is displayed correctly.

tests.interface.ui.test_plottingwindow module

class tests.interface.ui.test_plottingwindow.TestPlottingWindow[source]

Bases: object

Tests for the PlottingWindow class.

test_cancel_clicked(qtbot)[source]

Tests the cancel_clicked method.

test_init(qtbot)[source]

Tests the types of attributes and the buttons connection to methods.

test_initialize_controller(qtbot)[source]

Tests the initialize_controller method.

test_max_clicked(qtbot)[source]

Tests the max_clicked method.

test_mean_clicked(qtbot)[source]

Tests the mean_clicked method.

test_min_clicked(qtbot)[source]

Tests the min_clicked method.

test_plot_comparison_clicked(qtbot)[source]

Tests the plot_comparison_clicked method.

test_plot_results_clicked(qtbot)[source]

Tests the plot_results_clicked method.

test_save_clicked(qtbot, monkeypatch)[source]

Tests the save_clicked method.

Module contents