def test_has_sqlalchemy_fields(self): from sqlalchemy import Column as SaC, String as SaS class MyModel: one_field = SaC(SaS(64)) self.assertTrue(has_sqlalchemy_fields(MyModel))
def test_has_sqlalchemy_fields2(self): class MyModel: one_field = String() self.assertFalse(has_sqlalchemy_fields(MyModel))
def test_has_sqlalchemy_fields2(self): class MyModel: one_field = String() assert not (has_sqlalchemy_fields(MyModel))