Skip to content

Add tests for ZHA switch#20691

Merged
dmulcahey merged 5 commits into
home-assistant:devfrom
dmulcahey:dm/zha-switch-test
Feb 3, 2019
Merged

Add tests for ZHA switch#20691
dmulcahey merged 5 commits into
home-assistant:devfrom
dmulcahey:dm/zha-switch-test

Conversation

@dmulcahey
Copy link
Copy Markdown
Contributor

Adds the tests for switch and also the common components and fixtures needed for testing all domains

@ghost ghost assigned dmulcahey Feb 2, 2019
@ghost ghost added the in progress label Feb 2, 2019
test cleanup

test deps

update switch test

actually update test deps

cleanup and remove switch from coveragerc

comment

refactor to use fixtures and shared components

lint
Comment thread tests/components/zha/test_switch.py Outdated
Comment thread tests/components/zha/common.py Outdated
Comment thread tests/components/zha/test_switch.py Outdated
@dmulcahey
Copy link
Copy Markdown
Contributor Author

@MartinHjelmare addressed comments

Copy link
Copy Markdown
Member

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small comment left. Then we can merge.

Comment thread script/gen_requirements_all.py
@MartinHjelmare
Copy link
Copy Markdown
Member

Btw, what's the coverage percent in the switch platform?

@dmulcahey
Copy link
Copy Markdown
Contributor Author

86.57 in dev and 97.78 in the reorg branch.

@MartinHjelmare
Copy link
Copy Markdown
Member

Then let's wait with removing the entry from .coveragerc. We don't want any modules below 95 %.

@dmulcahey
Copy link
Copy Markdown
Contributor Author

ok, I’ll put that back in the morning. Good to merge after that and the build passing again?

@MartinHjelmare
Copy link
Copy Markdown
Member

Yes!

Copy link
Copy Markdown
Member

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be merged when build passes.

@dmulcahey dmulcahey merged commit 74cdf7c into home-assistant:dev Feb 3, 2019
@ghost ghost removed the in progress label Feb 3, 2019
@dmulcahey dmulcahey deleted the dm/zha-switch-test branch February 3, 2019 12:03
@balloob balloob mentioned this pull request Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants