Ville Skyttä
dbd0763f83
Grammar and spelling fixes ( #16065 )
2018-08-19 22:29:08 +02:00
Richard Cox
1e8c00ac02
Adding support for mapping keys to value in statsd ( #8665 )
...
* Adding ability to map specific states to values
* Adding test for mapping
2017-07-27 08:58:34 +02:00
Paulus Schoutsen
2650c73a89
Split bootstrap into bs + setup ( #6416 )
...
* Split bootstrap into bs + setup
* Lint
2017-03-05 10:41:54 +01:00
Paulus Schoutsen
7f699b4261
Lazy initialise the worker pool ( #4110 )
...
* Lazy initialise the worker pool
* Minimize pool initialization in core tests
* Fix tests on Python 3.4
* Remove passing in thread count to mock HASS
* Tests: Allow pool by default for threaded, disable for async
* Remove JobPriority for thread pool
* Fix wrong block_till_done
* EmulatedHue: Remove unused test code
* Zigbee: do not touch hass.pool
* Init loop in add_job
* Fix core test
* Fix random sensor test
2016-10-31 08:47:29 -07:00
Pascal Vizeli
d5368f6f78
Async bootstrap / component init ( #3991 )
...
* Async bootstrap
* Adress comments
* Fix tests
* More fixes
* Tests fixes
2016-10-27 00:16:23 -07:00
Brent Hughes
6e5a3c0a94
Fixed statsd stopping if state is not numeric or only attributes changed ( #3981 )
...
* Fixed statsd stopping if attribute changed by not the state
* Fixed tests which exposed a new bug.
* Fixed another issue. whoops
2016-10-21 23:18:13 -07:00
Rob Capellini
4891ca1610
Removing calls to mock.assert_called_once_with ( #3896 )
...
If a mock's assert_called_once_with method is misspelled (e.g. asert_called_once_with) then the test will appear as passing. Therefore, this commit removes all instances of assert_called_once_with calls and replaces them with two assertions:
self.assertEqual(mock.call_count, 1)
self.assertEqual(mock.call_args, mock.call(call_args))
2016-10-16 16:13:27 -07:00
Paulus Schoutsen
4b8bc90d16
Limit worker pool to 10 threads ( #3560 )
...
* Limit worker pool to 10 threads
* Comment evdev in requirements
* Allow skipping RFXtrx tests locally
* Fix worker pool size tests
* lol whut
2016-09-28 00:05:38 -07:00
Pascal Vizeli
bbfd86dec3
Use setup_component in tests v1 ( #3507 )
...
* update unittests like #3414
* setup_component - splunk
* setup_component - statsd
* fix statsd & splunk unittest config values
* component_setup - device_sun_light_trigger
* setup_component - introduction
* component_setup - persistent_notification
* setup_component - logentries, mqtt eventstream
* fix unittest logentries
2016-09-25 23:15:21 +02:00
Fabian Affolter
ac5647a30e
Use voluptuous for statsd ( #2928 )
...
* Migrate to voluptuous
* Update tests
2016-09-13 18:22:30 -07:00
Brent
ff5c3c9f98
Added attributes to the statsd data ( #2440 )
...
* Added attributes to the statsd data
* Updated to allow optional attribute logging
2016-07-07 23:09:02 -07:00
Brent
ffccca1f60
Updated to new statsd library and added state change counters ( #2429 )
2016-07-03 15:21:18 -07:00
Fabian Affolter
9838697d2b
Fix PEP257 issues
2016-03-09 10:25:50 +01:00
Paulus Schoutsen
bf0b453677
Merge branch 'hotfix/state-as-number' into dev
...
Conflicts:
homeassistant/const.py
tests/helpers/test_state.py
2016-02-13 08:32:06 -08:00
Fabian Affolter
00afaac54c
Update for file header, docstrings, and PEP8/PEP257
2016-02-13 14:19:11 +01:00
Paulus Schoutsen
1571b33e4a
Fix: state_as_number always return float
2016-02-13 00:08:32 -08:00
Dan Smith
76df759f4c
Add simple statsd tests
...
These are not very amazing, but at least exercise the code a little
to make sure I didn't break anything. Hopefully they're useful in the
future too.
2016-02-12 01:45:30 +00:00