Something like luma.core.interface.serial.dummy - for tests?
See original GitHub issueI’m thinking about covering my luma.core
-based drivers with tests. However, our test environment won’t have real hardware accessible for testing. Any practice you’d suggest?
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Luma.Core Documentation
luma.core is a component library providing a Pillow-compatible drawing canvas for Python 3, and other functionality.
Read more >Failing tests on Python 3.5 #55 - rm-hull/luma.oled - GitHub
The errors I encountered were because in a previous version there was a mock.py class in the tests directory (which I had removed)...
Read more >Luma.Core Documentation - Read the Docs
luma.core.serial. Encapsulates sending commands and data over a serial interface, whether that is I2C, SPI or bitbanging GPIO.
Read more >Mocking in C# Unit Tests - How To Test Data Access Code ...
Unit tests are great, but how do you test your data access? You sure don't want to actually delete records when you are...
Read more >How YOU can Learn Mock testing in .NET Core and C# with ...
Lastly, we might want to assert that a certain behavior takes place. Demo, let's write some code that has more than one execution...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
oh, I see now, thank you! Seems like I confused it with what’d be a
dummy
display driver.I’d be inclined to use
mock.Mock()
as you have discovered…As to
unsafe=True
: there was a specific PR (https://github.com/rm-hull/luma.oled/pull/72) to fix an issue (https://github.com/rm-hull/luma.oled/issues/55) where it was causing problems.