diff options
author | yvesf <yvesf-git@xapek.org> | 2010-07-08 23:37:01 +0200 |
---|---|---|
committer | yvesf <yvesf-git@xapek.org> | 2010-07-08 23:37:01 +0200 |
commit | 0db87a811fef3a08d9f547d53388f1f8ef80422b (patch) | |
tree | 300e8d6327679e9224723914976450b0fedb5fea /test.py | |
parent | 7a57ef77a3093f480ab414400d44d546f283d81c (diff) | |
download | ebus-alt-0db87a811fef3a08d9f547d53388f1f8ef80422b.tar.gz ebus-alt-0db87a811fef3a08d9f547d53388f1f8ef80422b.zip |
fehler im model behoben und test.py aktualisiert
Diffstat (limited to 'test.py')
-rw-r--r-- | test.py | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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() |