Skip to content

Commit

Permalink
Use cached run for test_visualization_entry
Browse files Browse the repository at this point in the history
  • Loading branch information
yngve-sk committed Dec 2, 2024
1 parent 5114488 commit 8197cf7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/everest/entry_points/test_visualization_entry.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import sys
from pathlib import Path
from unittest.mock import patch

import pytest
Expand All @@ -13,9 +14,9 @@
return_value={"status": ServerStatus.completed},
)
@pytest.mark.skipif(sys.version_info.major < 3, reason="requires python3 or higher")
def test_visualization_entry(patcher_estatus, cached_example):
def test_visualization_entry(_, cached_example):
derp = cached_example("math_func/config_advanced.yml", chdir=True)
config_path, config_file, _ = derp
with capture_streams() as (out, _):
visualization_entry([config_path / config_file])
visualization_entry([str(Path(config_path) / config_file)])
assert "No visualization plugin installed!" in out.getvalue()

0 comments on commit 8197cf7

Please sign in to comment.