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')
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')