-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test that loads all BP code, showing true coverage.
- Loading branch information
Tom Ritchford
committed
Feb 12, 2017
1 parent
cc5e2c2
commit 242dc26
Showing
4 changed files
with
49 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,5 @@ include = bibliopixel/*/*.py, bibliopixel/*.py | |
|
||
[report] | ||
|
||
fail_under = 50 | ||
fail_under = 35 | ||
skip_covered = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
Pillow>=2.4.0 | ||
pyserial>=2.7 | ||
spidev==2.0 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import unittest | ||
|
||
import bibliopixel | ||
|
||
from bibliopixel import ( | ||
animation, | ||
colors, | ||
data_maker, | ||
font, | ||
gamepad, | ||
gamma, | ||
image, | ||
layout, | ||
led, | ||
log, | ||
matrix, | ||
return_codes, | ||
# serial_gamepad, | ||
timedata, | ||
util, | ||
) | ||
|
||
from bibliopixel.drivers import ( | ||
APA102, | ||
LPD8806, | ||
# SimPixel, | ||
WS2801, | ||
driver_base, | ||
dummy_driver, | ||
hue, | ||
image_sequence, | ||
network, | ||
network_receiver, | ||
network_udp, | ||
serial_driver, | ||
spi_driver_base, | ||
# timedata_visualizer, | ||
visualizer, | ||
visualizerUI, | ||
) | ||
|
||
|
||
class ImportAllTest(unittest.TestCase): | ||
def test_all(self): | ||
# We pass just by successfully importing everything above. | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
pyserial>=2.7.0 | ||
coverage | ||
flake8 | ||
phue | ||
pytest | ||
Pillow>=2.4.0 |