summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test.py')
-rw-r--r--test.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/test.py b/test.py
index 82df5b6..958c7b1 100644
--- a/test.py
+++ b/test.py
@@ -17,11 +17,18 @@ session = Session()
t1_sensor = model.Sensor("foosensor", "blatest")
session.add(t1_sensor)
-for i in xrange(10000):
- session.add( model.Value(t1_sensor, 0.5) )
+for i in xrange(10):
+ m = model.ValueInt(t1_sensor, 1)
+ session.add( m )
-session.commit()
+ m = model.ValueFloat(t1_sensor, 1.2)
+ session.add( m )
+
+ m = model.ValueString(t1_sensor, "foobar")
+ session.add( m )
+
+session.commit()
session.close()