Skip to content

Commit 4ca0de7

Browse files
committed
Add missing comments
1 parent d6fc48a commit 4ca0de7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/unit/test_simvue.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def test_numpy_array_mime_type():
8484

8585
def test_pytorch_tensor_mime_type():
8686
"""
87+
Check that a PyTorch tensor has the correct mime-type
8788
"""
8889
torch.manual_seed(1724)
8990
array = torch.rand(2, 3)
@@ -93,6 +94,7 @@ def test_pytorch_tensor_mime_type():
9394

9495
def test_matplotlib_figure_mime_type():
9596
"""
97+
Check that a matplotlib figure has the correct mime-type
9698
"""
9799
plt.plot([1, 2, 3, 4])
98100
figure = plt.gcf()
@@ -101,8 +103,9 @@ def test_matplotlib_figure_mime_type():
101103

102104
assert (mime_type == 'application/vnd.plotly.v1+json')
103105

104-
def test_matplotlib_figure_mime_type():
106+
def test_plotly_figure_mime_type():
105107
"""
108+
Check that a plotly figure has the correct mime-type
106109
"""
107110
plt.plot([1, 2, 3, 4])
108111
figure = plt.gcf()

0 commit comments

Comments
 (0)