Skip to content

Commit 6808a97

Browse files
committed
test: add basic deepcopy figure test
1 parent 484f2df commit 6808a97

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import copy
2+
import plotly.express as px
3+
4+
5+
def test_deepcopy():
6+
gapminder = px.data.gapminder()
7+
fig = px.line(gapminder, x="year", y="gdpPercap", color="country")
8+
9+
fig_copy = copy.deepcopy(fig)
10+
11+
assert fig_copy is not None

0 commit comments

Comments
 (0)