The readme should contain a portion on how to run the tests.
If I am correct you should use following steps:
- Install test dependencies
pip install -e .[test]
- Run the test
pytest
- Profit
This runs the tests for me but I have currently 2 problems
- The
test_hub.py keeps hanging and never completes
- In
test_device.py there are 3 tests failing:
- test_calling_update_fires_updated_event
- test_setting_device_state_fires_updated_event
- test_setting_battery_level_fires_updated_event
All with the same error
> device.updated.set = event_set
E AttributeError: 'Event' object attribute 'set' is read-only
I am currently using python version 3.10.4 not sure if that is the problem?
The readme should contain a portion on how to run the tests.
If I am correct you should use following steps:
pip install -e .[test]pytestThis runs the tests for me but I have currently 2 problems
test_hub.pykeeps hanging and never completestest_device.pythere are 3 tests failing:All with the same error
I am currently using python version 3.10.4 not sure if that is the problem?