Rob Capellini
272539105f
Replacing tempfile with mock_open in tests ( #3753 )
...
- test_bootstrap.py
- test_config.py
- components/test_init.py
- components/test_panel_custom.py
- components/test_api.py
- components/notify/test_file.py
- components/notify/test_demo.py
- components/camera/test_local_file.py
- helpers/test_config_validation.py
- util/test_package.py
- util/test_yaml.py
No changes needed in:
- components/cover/test_command_line.py
- components/switch/test_command_line.py
- components/rollershutter/test_command_line.py
- components/test_shell_command.py
- components/notify/test_command_line.py
Misc changes in:
- components/mqtt/test_server.py
Also, removed some unused mock parameters in tests/components/mqtt/test_server.py.
2016-10-17 20:16:36 -07:00
Johann Kellerman
cb322f72db
Add persistent notifications to bootstrap ( #3738 )
...
* Add persistent notifications to bootstrap
* Rebase, Fix test
2016-10-13 09:09:07 -07:00
Johann Kellerman
7b40a641ec
Continue on invalid platforms and new setup_component unit tests ( #3736 )
2016-10-08 11:27:35 -07:00
Paulus Schoutsen
ac4e54c6ff
Filter out falsey platform configs
2016-09-24 00:03:44 -07:00
Ben Bangert
256062fd99
Fix test shutdown to ensure loop/threads are clean. ( #3447 )
...
* Fix test shutdown to ensure loop/threads are clean.
We now ensure the loop is closed, it has completed, and the
executer has completed. This ensure all threads are freed
up with any test calling hass.stop().
* Fix lint issue with run_loop
2016-09-18 20:35:58 -07:00
Paulus Schoutsen
5995f2438e
fix remove listener ( #3196 )
2016-09-07 06:59:59 -07:00
Paulus Schoutsen
e9813b219e
Allow reloading automation without restarting HA ( #3002 )
2016-09-04 17:15:52 +02:00
Paulus Schoutsen
62ba0fa7a2
Do not install pip packages in tests
2016-08-25 23:23:14 -07:00
Paulus Schoutsen
f1632496f0
Allow circular dependency with discovery ( #2616 )
2016-07-25 22:49:10 -07:00
Paulus Schoutsen
6714392e9c
Move elevation to core config and clean up HTTP mocking in tests ( #2378 )
...
* Stick version numbers
* Move elevation to core config
* Migrate forecast test to requests-mock
* Migrate YR tests to requests-mock
* Add requests_mock to requirements_test.txt
* Move conf code from bootstrap to config
* More config fixes
* Fix some more issues
* Add test for set config and failing auto detect
2016-06-27 09:02:45 -07:00
Jan Harkes
241735c924
Change local library path from {config_dir}/lib to {config_dir}/deps. ( #1799 )
...
Just on the off chance that someone who happens to run as root and also
doesn't correctly parse "just remove config /lib and restart".
2016-04-11 20:07:50 -07:00
Paulus Schoutsen
f6d584af09
Allow platforms to specify PLATFORM_SCHEMA
2016-04-02 20:10:57 -07:00
Paulus Schoutsen
489c5b8188
bootstrap platform components: adjust instead of replace config
2016-03-31 21:11:14 -07:00
Paulus Schoutsen
8ceab5d4ba
Add extra tests
2016-03-29 22:50:38 -07:00
Paulus Schoutsen
25269cdb6b
Add tests for bootstrap config validation
2016-03-29 00:17:53 -07:00
Fabian Affolter
9838697d2b
Fix PEP257 issues
2016-03-09 10:25:50 +01:00
Paulus Schoutsen
cd6d44ece3
Properly clean up Home Assistant instances in tests
2016-02-20 01:05:52 -08:00
Paulus Schoutsen
1bfea626ff
Handle circular setup dependency
2016-02-19 23:20:14 -08:00
Paulus Schoutsen
09ab3e95c0
Tests should all use test HA
2016-02-14 15:08:23 -08:00
Paulus Schoutsen
61630783f1
Disable location queries
2016-02-02 21:33:59 -08:00
Ryan Kraus
2651021461
Added test for entity customization
...
Added test for entity customization from configuration. Processes a
sample configuration to hide an entity, creates the entity, updates ha
state, and then verifies customization made it through.
2016-01-30 21:27:00 -05:00
Paulus Schoutsen
0f68dc6b7b
Add tests for version upgrade
2015-11-15 14:28:50 -08:00
Paulus Schoutsen
60abaa585c
Add test for bootstrap
2015-08-11 08:20:13 -07:00