Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 655 Bytes

TESTING.md

File metadata and controls

30 lines (21 loc) · 655 Bytes

First, install poetry

From the root of this repository,

poetry install --with dev

Testing

The unit tests can be run on a Mac, Linux, or Windows computer with a bluetooth adapter.

Since we need access to a hardware bluetooth adapter, these tests can't be run in a typical CI/CD Github Actions-type testing environment.

Run tests:

poetry run pytest

Style $ Linting

Use Black to style all Python code:

poetry run black .

Run Pylint to get more detailed feedback.

poetry run pylint bleak_fsm/bleak_model.py