def test_category_delete(category):
 category.delete()
 category = Category.query.filter_by(id=category.id).first()
 assert (category is None)

def test_category_delete ( category ) : category . delete ( ) category = Category . query . filter_by ( id = category . id ) . first ( ) assert ( category is None )
test the delete category method .