You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self=<pingo.rpi.tests.test_rpi.RaspberryBasicstestMethod=test_jumpwire>deftest_jumpwire(self):
''' Wire this DigitalPin directly into VDD '''pin=self.board.pins[self.digital_input_pin_number]
pin.mode=pingo.INoutput=pin.state
assert output == pingo.HIGH
E AssertionError: assert 'LOW' == 'HIGH'
E - LOW
E + HIGH
pingo/test/level0/cases.py:64: AssertionError
The text was updated successfully, but these errors were encountered:
@lamenezes thanks for looking into this. I can't reply in detail right now because I am swamped teaching full-time courses and reviewing the PT-BR edition of my book... However, in general yes, there are tests in Pingo which require the boards to be connected to some simple circuits, otherwise we would have no way of telling whether a digital input is ever HIGH or LOW or changing... Same for analog and PWM pins, which is are more important to test using a real hardware test harness. One of the biggest challenges ahead of us is designing and documenting these circuits, and building the actual test harnesses with actual boards for testing each release of Pingo. We have the boards, the components for the circuits are simple, we just have not properly designed, documented and implemented the harnesses in a reproducible manner. Please help us do that. Thanks!
@ramalho Proper documentation would help on running and creating tests. And would also avoid misunderstandings like I had.
I was checking the tests and I saw that the button test was skipped because it required someone to be pushing the button while that exact test is running, how would we surpass that kind of problem? How would we automatically test an analog input such as a potentiometer?
I'm working on issue #68 and I should have a (simple) patch to submit soon. Therefore I don't have time to write docs right now.
Changing the assert to LOW will fix this? This test assumes that some pins are plugged?
Details below
=================================================== FAILURES ==========================================================================
_____________________________________________________________________________ RaspberryBasics.test_jumpwire _____________________________________________________________________________
E AssertionError: assert 'LOW' == 'HIGH'
E - LOW
E + HIGH
pingo/test/level0/cases.py:64: AssertionError
The text was updated successfully, but these errors were encountered: