Coverage for tests/test_vis.py: 100%
9 statements
« prev ^ index » next coverage.py v7.15.1, created at 2026-07-18 05:24 +0000
« prev ^ index » next coverage.py v7.15.1, created at 2026-07-18 05:24 +0000
1"""Import-level smoke tests for the vis module.
3The reconstructors need torch (+ model weights) and plot3d needs a display, so
4functional coverage lives outside CI; these tests only pin that importing the
5package does not break and skips cleanly when optional deps are missing.
6"""
7import pytest
10def test_vis_imports():
11 vis = pytest.importorskip("evutils.vis")
12 assert hasattr(vis, "reconstructor")
15def test_plot3d_importable():
16 pytest.importorskip("cv2")
17 pytest.importorskip("matplotlib")
18 from evutils.vis import plot3d
19 assert callable(plot3d.plot_3d)