From 15cdd1b19f6ee64a8be7afc31001c186548ca879 Mon Sep 17 00:00:00 2001 From: Konsta Vesterinen Date: Tue, 19 Nov 2013 08:26:28 +0200 Subject: [PATCH] More tests for JSONType --- tests/types/test_json.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/types/test_json.py b/tests/types/test_json.py index 6686b26..cf2ffb1 100644 --- a/tests/types/test_json.py +++ b/tests/types/test_json.py @@ -15,6 +15,17 @@ class TestJSONType(TestCase): self.Document = Document + def test_list(self): + document = self.Document( + json=[1, 2, 3] + ) + + self.session.add(document) + self.session.commit() + + document = self.session.query(self.Document).first() + assert document.json == [1, 2, 3] + def test_parameter_processing(self): document = self.Document( json={'something': 12}