Mercurial > code > home > repos > homeauto
comparison service/mqtt_to_rdf/inference_test.py @ 1624:91e9d4eb612a
slow test is ok now (but other slow tests are now broken)
author | drewp@bigasterisk.com |
---|---|
date | Wed, 08 Sep 2021 18:59:21 -0700 |
parents | 272f78d4671a |
children | 64f4fb8c233f |
comparison
equal
deleted
inserted
replaced
1623:cf901d219007 | 1624:91e9d4eb612a |
---|---|
203 ''') | 203 ''') |
204 | 204 |
205 out = inf.infer(N3('[] a :MqttMessage ; :body "online" ; :topic :foo .')) | 205 out = inf.infer(N3('[] a :MqttMessage ; :body "online" ; :topic :foo .')) |
206 self.assertIn((EX['frontDoorLockStatus'], EX['connectedStatus'], EX['Online']), out) | 206 self.assertIn((EX['frontDoorLockStatus'], EX['connectedStatus'], EX['Online']), out) |
207 | 207 |
208 @unittest.skip("still too slow") | |
209 def testTopicIsList(self): | 208 def testTopicIsList(self): |
210 inf = makeInferenceWithRules(''' | 209 inf = makeInferenceWithRules(''' |
211 { ?msg :body "online" . } => { ?msg :onlineTerm :Online . } . | 210 { ?msg :body "online" . } => { ?msg :onlineTerm :Online . } . |
212 { ?msg :body "offline" . } => { ?msg :onlineTerm :Offline . } . | 211 { ?msg :body "offline" . } => { ?msg :onlineTerm :Offline . } . |
213 | 212 |