def test_update_3(self) : app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///:memory:' db.drop_all() db.create_all() s = Style(name="Old Western Ale", description="Taste's like the old west") db.session.add(s) db.session.commit() s.name = "Old Eastern Ale" db.session.commit() result = db.session.query(Style).filter_by(name="Old Eastern Ale").first() self.assertEqual(result.description, "Taste's like the old west")