core/script
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
..
bootstrap Consolidate frontend (#9915) 2017-10-24 19:36:27 -07:00
check_dirty Fail if dirty (#16839) 2018-09-25 20:47:51 +02:00
dev_docker tradfri: Improve color temp support detection (#7211) 2017-04-21 23:32:51 -07:00
dev_openzwave_docker Improve development workflow in docker (#5079) 2017-01-02 22:04:09 +01:00
gen_requirements_all.py Allow verisure locks to be configured with a default code (#18873) 2018-12-03 07:25:54 +01:00
inspect_schemas.py Update pydocstyle to 2.1.1 and flake8-docstrings to 1.3.0 (#14557) 2018-08-24 10:28:43 +02:00
lazytox.py Update pydocstyle to 2.1.1 and flake8-docstrings to 1.3.0 (#14557) 2018-08-24 10:28:43 +02:00
lint script/lint: Ensure there are files to test with pylint (#14363) 2018-05-10 12:47:04 +02:00
lint_docker Speeds up lint and test in docker by keeping the cache between invocations. (#5177) 2017-01-05 09:45:14 +01:00
monkeytype Add script to run monkeytype typing on test suite (#14440) 2018-06-21 15:06:05 +02:00
release Update release script 2018-05-26 11:54:50 -04:00
server Improve development workflow in docker (#5079) 2017-01-02 22:04:09 +01:00
setup Reorganize lint travis builds (#10670) 2017-11-19 17:39:24 -08:00
test Removing asyncio.coroutine syntax from HASS core (#12509) 2018-02-25 03:38:46 -08:00
test_docker Fix a bunch of typos (#9545) 2017-09-23 17:15:46 +02:00
translations_develop Config flow translations (#13066) 2018-03-11 12:04:34 -07:00
translations_download Update translations 2018-10-17 14:12:41 +02:00
translations_download_split.py Update pydocstyle to 2.1.1 and flake8-docstrings to 1.3.0 (#14557) 2018-08-24 10:28:43 +02:00
translations_upload Fix for Lokalise backend misinterpretation of keys (#13986) 2018-04-18 15:58:47 -04:00
translations_upload_merge.py Update pydocstyle to 2.1.1 and flake8-docstrings to 1.3.0 (#14557) 2018-08-24 10:28:43 +02:00
travis_deploy Support serving of backend translations (#12453) 2018-02-28 19:31:38 -08:00
update Improve development workflow in docker (#5079) 2017-01-02 22:04:09 +01:00
version_bump.py Use older syntax for version bump 2018-06-22 11:07:26 -04:00