Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions tests/test_export.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
from pathlib import Path
import pytest
import asyncio
import pyvista as pv
from pyvista import examples


@pytest.mark.asyncio
async def test_export():
def test_export():
mesh = examples.load_uniform()
plotter = pv.Plotter(shape=(1, 2))
plotter.add_mesh(mesh, scalars="Spatial Point Data", show_edges=True)
plotter.subplot(0, 1)
plotter.add_mesh(mesh, scalars="Spatial Cell Data", show_edges=True)
plotter.export_html("pv.html")

await asyncio.sleep(0.1)
plotter.close()
assert Path("pv.html").exists()
Loading