def test_process_result_value_none(self): t = types.JsonEncoded() self.assertIsNone(t.process_result_value(None, None))
def test_process_result_value(self): t = types.JsonEncoded() self.assertEqual({"a": 1}, t.process_result_value('{"a": 1}', None))
def test_process_bind_param(self): t = types.JsonEncoded() self.assertEqual('{"a": 1}', t.process_bind_param({"a": 1}, None))
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))