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

Problems running tests #36

Open
depuits opened this issue Apr 6, 2022 · 0 comments
Open

Problems running tests #36

depuits opened this issue Apr 6, 2022 · 0 comments

Comments

@depuits
Copy link
Collaborator

depuits commented Apr 6, 2022

The readme should contain a portion on how to run the tests.

If I am correct you should use following steps:

  1. Install test dependencies pip install -e .[test]
  2. Run the test pytest
  3. Profit

This runs the tests for me but I have currently 2 problems

  1. The test_hub.py keeps hanging and never completes
  2. 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant