Skip to content

Commit bf0f280

Browse files
committed
add papermill test
1 parent ed1861e commit bf0f280

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/test_papermill.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import unittest
2+
3+
import subprocess
4+
5+
class TestPapermill(unittest.TestCase):
6+
def test_papermill(self):
7+
result = subprocess.run([
8+
'papermill',
9+
'/input/tests/data/notebook.ipynb',
10+
'-',
11+
], stdout=subprocess.PIPE)
12+
13+
self.assertEqual(0, result.returncode)
14+
self.assertTrue(b'999' in result.stdout)

0 commit comments

Comments
 (0)