Skip to content

Commit

Permalink
Add scheduler fixture to test_run_dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
xjules committed Jan 12, 2024
1 parent 0f93287 commit 48c590e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/unit_tests/gui/simulation/test_run_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ def test_large_snapshot(
index="0",
status=state.FORWARD_MODEL_STATE_FINISHED,
name="job_0",
).build(["1"], status=state.REALIZATION_STATE_RUNNING)
)
.build(["1"], status=state.REALIZATION_STATE_RUNNING)
),
phase_name="Foo",
current_phase=0,
Expand Down Expand Up @@ -335,9 +336,10 @@ def test_run_dialog(events, tab_widget_count, runmodel, qtbot: QtBot, mock_track
qtbot.waitUntil(widget.done_button.isVisible, timeout=5000)


@pytest.mark.scheduler
@pytest.mark.usefixtures("copy_poly_case")
def test_that_run_dialog_can_be_closed_while_file_plot_is_open(
qtbot: QtBot, storage, source_root
qtbot: QtBot, storage, source_root, try_queue_and_scheduler
):
"""
This is a regression test for a crash happening when
Expand Down Expand Up @@ -523,8 +525,11 @@ def test_run_dialog_memory_usage_showing(
assert max_memory_value == "60000"


@pytest.mark.scheduler
@pytest.mark.usefixtures("use_tmpdir")
def test_that_gui_runs_a_minimal_example(qtbot: QtBot, storage):
def test_that_gui_runs_a_minimal_example(
qtbot: QtBot, storage, try_queue_and_scheduler
):
"""
This is a regression test for a crash happening when clicking show details
when running a minimal example.
Expand Down

0 comments on commit 48c590e

Please sign in to comment.