示例#1
0
 def test_process_result_value_none(self):
     t = types.JsonEncoded()
     self.assertIsNone(t.process_result_value(None, None))
示例#2
0
 def test_process_result_value(self):
     t = types.JsonEncoded()
     self.assertEqual({"a": 1}, t.process_result_value('{"a": 1}', None))
示例#3
0
 def test_process_bind_param(self):
     t = types.JsonEncoded()
     self.assertEqual('{"a": 1}', t.process_bind_param({"a": 1}, None))
示例#4
0
 def test_process_bind_param_none(self):
     t = types.JsonEncoded()
     self.assertIsNone(t.process_bind_param(None, None))
def upgrade():
    op.add_column('job_executions',
                  sa.Column('extra', st.JsonEncoded(), nullable=True))