def test_gen_app_cell_pre_valid(self): js = generate_app_cell( spec_tuple=(json.dumps(self.spec_json), self.display_yaml) ) self.assertIsNotNone(js) self.assertIsNotNone(js.data) self.assertIn( "A description string, with "quoted" values, shouldn't fail.", js.data, ) self.assertIn("Test Simple Inputs with "quotes"", js.data) self.assertIn("A simple test spec with a single 'input'.", js.data)
def test_gen_app_cell_fail_validation(self): with self.assertRaises(Exception): generate_app_cell(spec_tuple=("{}", self.display_yaml))
def test_gen_app_cell_pre_valid(self): js = generate_app_cell(spec_tuple=(json.dumps(self.spec_json), self.display_yaml)) self.assertIsNotNone(js)
def test_gen_app_cell_post_validation(self): js = generate_app_cell(validated_spec=self.specs_list[0]) self.assertIsNotNone(js)
def test_gen_app_cell_fail_validation(self): with self.assertRaises(Exception): generate_app_cell(spec_tuple=("{}", self.display_yaml))
def test_gen_app_cell_pre_valid(self): js = generate_app_cell(spec_tuple=(json.dumps(self.spec_json), self.display_yaml)) self.assertIsNotNone(js)
def test_gen_app_cell_post_validation(self): js = generate_app_cell(validated_spec=self.specs_list[0]) self.assertIsNotNone(js)