hass-core/tests
Andrew Hayworth 5ae65142b8 Allow verisure locks to be configured with a default code (#18873)
* Allow verisure locks to be configured with a default code

* linting fix

* PR feedback

* PR feedback - try harder to prevent future typos

A python mock is a magical thing, and will respond to basicaly
any method you call on it. It's somewhat better to assert against
an explicit variable named 'mock', rather than to assert on the
method name you wanted to mock... could prevent a typo from messing up
tests.

* PR feedback: convert tests to integration-style tests

Set up a fake verisure hub, stub out a _lot_ of calls, then test
after platform discovery and service calls.

It should be noted that we're overriding the `update()` calls in
these tests. This was done to prevent even further mocking of
the verisure hub's responses.

Hopefully, this'll be a foundation for people to write more tests.

* more pr feedback
2018-12-03 07:25:54 +01:00
..
auth RFC: Call services directly (#18720) 2018-11-30 21:28:35 +01:00
components Allow verisure locks to be configured with a default code (#18873) 2018-12-03 07:25:54 +01:00
fixtures Add Entur departure information sensor (#17286) 2018-11-30 09:06:59 +01:00
helpers No more opt-out auth (#18854) 2018-12-02 16:32:53 +01:00
mock Add zwave.network_complete_some_dead event (#16894) 2018-09-28 19:14:57 +02:00
resources Revised package util tests 2016-01-30 14:08:32 -05:00
scripts Mqtt light refactor (#18227) 2018-11-27 14:00:05 +01:00
test_util Deprecated stuff (#16019) 2018-08-20 16:34:18 +02:00
testing_config add_devices -> add_entities (#16171) 2018-08-24 16:37:30 +02:00
util Restore states through a JSON store instead of recorder (#17270) 2018-11-28 13:16:43 +01:00
__init__.py async HTTP component (#3914) 2016-10-23 23:48:01 -07:00
common.py Store state last seen time separately (#18806) 2018-11-30 08:26:19 +01:00
conftest.py No more opt-out auth (#18854) 2018-12-02 16:32:53 +01:00
test_bootstrap.py Remove usage of "run_until_complete" (#16617) 2018-09-19 15:40:02 +02:00
test_config.py No more opt-out auth (#18854) 2018-12-02 16:32:53 +01:00
test_config_entries.py Fix unloading an entry can leave states around (#17786) 2018-10-25 19:57:36 +02:00
test_core.py RFC: Call services directly (#18720) 2018-11-30 21:28:35 +01:00
test_data_entry_flow.py Allow finish_flow callback to change data entry result type (#16100) 2018-08-21 10:48:24 -07:00
test_loader.py Pytest tests (#17750) 2018-10-24 12:10:05 +02:00
test_main.py Hello Python 3.5 (#12610) 2018-02-22 23:22:27 -08:00
test_requirements.py Improve package loadable (#16237) 2018-08-28 12:52:18 +02:00
test_setup.py OwnTracks Config Entry (#18759) 2018-11-28 22:20:13 +01:00