コード例 #1
0
 def test_notebook_with_env(self):
     spec = NotebookSpec(support_file('notebook_with_env.ipynb'))
     self.assertTrue(spec.can_handle())
     self.assertIsInstance(spec.environment, env.Environment)
コード例 #2
0
 def test_notebook_no_env(self):
     spec = NotebookSpec(support_file('notebook.ipynb'))
     self.assertEqual(spec.can_handle(), False)
コード例 #3
0
 def test_no_notebook_file(self):
     spec = NotebookSpec(support_file('simple.yml'))
     self.assertEqual(spec.can_handle(), False)
コード例 #4
0
 def test_no_notebook_file(self):
     spec = NotebookSpec(support_file('simple.yml'))
     self.assertEqual(spec.can_handle(), False)
コード例 #5
0
 def test_notebook_with_env(self):
     spec = NotebookSpec(support_file('notebook_with_env.ipynb'))
     self.assertTrue(spec.can_handle())
     self.assertIsInstance(spec.environment, env.Environment)
コード例 #6
0
 def test_notebook_no_env(self):
     spec = NotebookSpec(support_file('notebook.ipynb'))
     self.assertEqual(spec.can_handle(), False)