Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for external libraries #127

Open
7 tasks
CRImier opened this issue Oct 28, 2018 · 0 comments
Open
7 tasks

Add tests for external libraries #127

CRImier opened this issue Oct 28, 2018 · 0 comments

Comments

@CRImier
Copy link
Member

CRImier commented Oct 28, 2018

Our OTA updater relies on external libraries to work in order for the ZPUI update to succeed (otherwise, it's rolled back). However, if those libraries break, it might happen that ZPUI fails to load altogether - as we don't have tests for external libraries yet.

TODO for each library:

  • For each library we're using, figure out which functions are used specifically
  • Write tests for the library loading- basically, make sure that, if the library fails, ZPUI itself doesn't fail in a spectacular fashion
  • If functions used are crucial to ZPUI,

Libraries that should be easy to tackle:

  • pydbus
  • mock
  • gpio

Libraries that we have control of:

  • zerophone_hw

Libraries that need more reseach on whether testing is necessary:

  • luma.oled (they have a lot of their own tests and test before release)
  • PIL (same, and we test some of their functions in ui/tests/test_canvas.py) + it's actually installed through apt.
  • unidecode (same, we test it a little bit in ui/tests/test_funcs.py)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant