Beispiel #1
0
def test_basics(qtbot):
    """
    Basic test that works more like a sanity check to ensure we are setting up a QApplication
    properly and are able to display a simple event_recorder.
    """
    widget = bruvio_tool()
    # widget.show()    # pdb.set_trace()
    assert widget.value == 1
Beispiel #2
0
def test_run_magssurf(qtbot):
    widget = bruvio_tool()
    result = widget.handle_magsurf_button()
    widget.magsurf_window.close()
    assert result == 1
Beispiel #3
0
def test_run_plot_data(qtbot):
    widget = bruvio_tool()
    result = widget.handle_readdata_button()
    widget.window_plotdata.close()
    assert result == 1
Beispiel #4
0
def test_edge2d(qtbot):
    widget = bruvio_tool()
    # pdb.set_trace()
    result = widget.handle_edge2d_button()
    widget.edge2d_window.close()
    assert result == 1
Beispiel #5
0
def test_eqdsk(qtbot):
    widget = bruvio_tool()
    result = widget.handle_eqdsk_button()
    # pdb.set_trace()
    widget.window_eqdsk.close()
    assert result == 1