Skip to content

Problems running tests #36

Description

@depuits

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions