MCPcopy Create free account
hub / github.com/Kaggle/docker-python / TestMatplotlib

Class TestMatplotlib

tests/test_matplotlib.py:10–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8import numpy as np
9
10class TestMatplotlib(unittest.TestCase):
11 def test_plot(self):
12 plt.plot(np.linspace(0,1,50), np.random.rand(50))
13 plt.savefig("plot1.png")
14
15 self.assertTrue(os.path.isfile("plot1.png"))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected