Skip to content

Commit 2abb008

Browse files
committed
Add regression test for figure lazy import
1 parent 134f4a1 commit 2abb008

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ultraplot/tests/test_imports.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,14 @@ def test_optional_module_attrs():
120120
getattr(uplt, "pytest_plugins")
121121

122122

123+
def test_figure_submodule_does_not_clobber_callable():
124+
import ultraplot as uplt
125+
import ultraplot.figure as figmod
126+
127+
assert callable(uplt.figure)
128+
assert figmod.Figure is uplt.Figure
129+
130+
123131
def test_internals_lazy_attrs():
124132
from ultraplot import internals
125133

0 commit comments

Comments
 (0)