Skip to content

Commit

Permalink
use called in test (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
thijstriemstra committed Jan 30, 2017
1 parent 0d0a3ee commit 01f0ee4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/test_neopixel.py
Expand Up @@ -85,8 +85,7 @@ def test_display():
call(14, 0xFF, 0, 0),
call(15, 0xFF, 0, 0),
])
# FIXME: #70 - Figure out why this fails on py34 only
# ws2812.show.assert_called()
assert ws2812.show.called


def test_mapping():
Expand All @@ -100,5 +99,5 @@ def test_mapping():

expected = [call(num_pixels - i - 1, i, 0, 0) for i in range(num_pixels)]
ws2812.setPixelColor.assert_has_calls(expected)
# FIXME: #70 - Figure out why this fails on py34 only
# ws2812.show.assert_called()

assert ws2812.show.called

0 comments on commit 01f0ee4

Please sign in to comment.