コード例 #1
0
 def test_is_api_cell(self):
     """Parser should correctly identify annotated API cells."""
     parser = APICellParser(comment_prefix='#')
     self.assertTrue(parser.is_api_cell('# GET /yes'), 'API cell was not detected')
     self.assertFalse(parser.is_api_cell('no'), 'API cell was not detected')
コード例 #2
0
 def test_is_api_cell(self):
     """Parser should correctly identify annotated API cells."""
     parser = APICellParser(kernelspec='some_unknown_kernel')
     self.assertTrue(parser.is_api_cell('# GET /yes'),
                     'API cell was not detected')
     self.assertFalse(parser.is_api_cell('no'), 'API cell was not detected')
コード例 #3
0
 def test_is_api_cell(self):
     """Parser should correctly identify annotated API cells."""
     parser = APICellParser(comment_prefix='#')
     self.assertTrue(parser.is_api_cell('# GET /yes'), 'API cell was not detected')
     self.assertFalse(parser.is_api_cell('no'), 'API cell was not detected')
コード例 #4
0
ファイル: test_parser.py プロジェクト: nitind/kernel_gateway
 def test_is_api_cell(self):
     """Parser should correctly identify annotated API cells."""
     parser = APICellParser(kernelspec='some_unknown_kernel')
     self.assertTrue(parser.is_api_cell('# GET /yes'), 'API cell was not detected')
     self.assertFalse(parser.is_api_cell('no'), 'API cell was not detected')