Skip to content

Commit

Permalink
fix fader test
Browse files Browse the repository at this point in the history
  • Loading branch information
onkelandy committed Nov 18, 2024
1 parent 2ca501b commit 0efb008
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/test_item.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,11 @@ def create_item(self, smarthome, parent, path, config):

def item_fadejob(self, item, dest, step, delta):
try:
lib.item.helpers.fadejob(item, dest, step, delta)
item._fadingdetails['dest'] = dest
item._fadingdetails['step'] = step
item._fadingdetails['delta'] = delta
item._fadingdetails['caller'] = 'test'
lib.item.helpers.fadejob(item)
except:
lib.item._fadejob(item, dest, step, delta)

Expand Down Expand Up @@ -697,7 +701,7 @@ def test_item_jsondump(self):

def test_item_types(self):
"""
Tests for the list/dict handling in items
Tests for the list/dict handling in items
"""
if verbose:
logger.warning('')
Expand Down Expand Up @@ -786,4 +790,3 @@ def test_item_types(self):

if __name__ == '__main__':
unittest.main(verbosity=2)

0 comments on commit 0efb008

Please sign in to comment.