MCPcopy Create free account
hub / github.com/vispy/vispy / test_figure_creation

Function test_figure_creation

vispy/plot/tests/test_plot.py:13–21  ·  view source on GitHub ↗

Test creating a figure

()

Source from the content-addressed store, hash-verified

11
12@requires_application()
13def test_figure_creation():
14 """Test creating a figure"""
15 with vp.Fig(show=False) as fig:
16 fig[0, 0:2]
17 fig[1:3, 0:2]
18 ax_right = fig[1:3, 2]
19 assert fig[1:3, 2] is ax_right
20 # collision
21 assert_raises(ValueError, fig.__getitem__, (slice(1, 3), 1))
22
23
24@requires_application()

Callers

nothing calls this directly

Calls 1

assert_raisesFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…