8000 Tests for zwave services by emlove · Pull Request #6937 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Tests for zwave services #6937

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

Merged
merged 5 commits into from
Apr 7, 2017
Merged

Tests for zwave services #6937

merged 5 commits into from
Apr 7, 2017

Conversation

emlove
Copy link
Contributor
@emlove emlove commented Apr 4, 2017

Description:

For #6437

This should wait until after #6813 since it will need to be rebased.

@mention-bot
Copy link

@armills, thanks for your PR! By analyzing the history of the files in this pull request, we identified @balloob, @andrey-git and @turbokongen to be potential reviewers.

@@ -554,7 +554,7 @@ def start_zwave(_service_or_event):
hass.services.register(DOMAIN, const.SERVICE_TEST_NETWORK,
test_network,
descriptions[const.SERVICE_TEST_NETWORK])
hass.services.register(DOMAIN, const.SERVICE_STOP_NETWORK, stop_zwave,
hass.services.register(DOMAIN, const.SERVICE_STOP_NETWORK, stop_network,

Choose a reason for hiding this comment

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

line too long (80 > 79 characters)

@andrey-git
Copy link
Contributor

Remove zwave/__init__py from .coverageall? (It is still covered partially, but now we can start to see progress)

@emlove
Copy link
Contributor Author
emlove commented Apr 4, 2017

I was planning to wait until the rest of the service tests are completed. Right now #6813 and #6938 are blockers.

@balloob
Copy link
Member
balloob commented Apr 5, 2017

You can see the progress locally too using

py.test --cov --cov-report=term-missing

@emlove
Copy link
Contributor Author
emlove commented Apr 6, 2017

I wrapped up the rest of the service tests, and I removed zwave init from .coveragerc. Still a lot that needs to be testing, but I figured this gives us a starting point. We can add it back it if we want to wait until more coverage is added.

@emlove emlove changed the title [WIP] Initial tests for zwave services Tests for zwave services Apr 6, 2017
@balloob
Copy link
Member
balloob commented Apr 7, 2017

It drops us from 94% test coverage to 93% 😢 but okay, let's do it but let's make sure we have it up to at least 93.5% before 0.43 !

Copy link
Member
@balloob balloob left a comment

Choose a reason for hiding this comment

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

🐬 ok to merge when merge conflicts resolved.

@emlove emlove merged commit df77529 into home-assistant:dev Apr 7, 2017
@emlove emlove deleted the zwave-service-tests branch April 7, 2017 13:17
@balloob balloob mentioned this pull request Apr 21, 2017
@home-assistant home-assistant locked and limited conversation to collaborators Jul 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
0