示例#1
0
    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))
示例#2
0
    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))
示例#3
0
    def test_has_sqlalchemy_fields2(self):
        class MyModel:
            one_field = String()

        self.assertFalse(has_sqlalchemy_fields(MyModel))
示例#4
0
    def test_has_sqlalchemy_fields2(self):

        class MyModel:
            one_field = String()

        assert not (has_sqlalchemy_fields(MyModel))
示例#5
0
    def test_has_sqlalchemy_fields2(self):

        class MyModel:
            one_field = String()

        self.assertFalse(has_sqlalchemy_fields(MyModel))