Bas Nijholt
f60125b5c9
Sort imports according to PEP8 for 'tests' ( #29791 )
2019-12-09 16:52:24 +01:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Erik Montnemery
407e0c58f9
Migrate tests to pytest ( #23544 )
...
* Migrate tests to pytest
* Fixup
* Use loop fixture in test_check_config
* Lint
2019-04-30 09:20:38 -07:00
Paulus Schoutsen
a9672b0d52
Load as many components in parallel as possible ( #20806 )
...
* Load as many components in parallel as possible
* Lint
2019-02-07 22:56:40 +01:00
Pascal Vizeli
2bf36bb1db
Use unicode slugify ( #19192 )
...
* Update __init__.py
* Update setup.py
* Update requirements_all.txt
* Update __init__.py
* Update __init__.py
* Update __init__.py
* Update __init__.py
* Update __init__.py
* remove `-`
* fix packages
* Update package_constraints.txt
* Update __init__.py
* Update package_constraints.txt
* Update requirements_all.txt
* Update setup.py
* Fix tests
* Fix line issue
* fix all test
* fix type
* Fix lint
2018-12-17 07:51:13 +01:00
Paulus Schoutsen
08fe7c3ece
Pytest tests ( #17750 )
...
* Convert core tests
* Convert component tests to use pytest assert
* Lint 🤷♂️
* Fix test
* Fix 3 typos in docs
2018-10-24 12:10:05 +02:00
Ville Skyttä
2f7b79764a
More pylint 2 fixes ( #15565 )
...
## Description:
More fixes flagged by pylint 2 that don't hurt to have before the actual pylint 2 upgrade (which I'll submit soon).
## Checklist:
- [ ] The code change is tested and works locally.
- [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
2018-07-20 11:45:20 +03:00
Paulus Schoutsen
5a9013cda5
Refactor Hue: phue -> aiohue ( #13043 )
...
* phue -> aiohue
* Clean up
* Fix config
* Address comments
* Typo
* Fix rebase error
* Mark light as unavailable when bridge is disconnected
* Tests
* Make Throttle work with double delay and async
* Rework update logic
* Don't resolve host to IP
* Clarify comment
* No longer do unnecessary updates
* Add more doc
* Another comment update
* Wrap up tests
* Lint
* Fix tests
* PyLint does not like mix 'n match async and coroutine
* Lint
* Update aiohue to 1.2
* Lint
* Fix await MagicMock
2018-03-16 20:27:05 -07:00
Paulus Schoutsen
36361d623d
Make Throttle async aware ( #13027 )
...
* Make Throttle async aware
* Lint
2018-03-09 19:38:51 -08:00
Adam Mills
c4810da82f
Unit tests to improve core coverage ( #9659 )
...
* Code coverage of logging util
* Improve async util coverage
* Add test coverage for restore_state
* get_random_string test
2017-10-02 20:25:04 -07:00
micw
3c35d5ea58
Fix/slugify with german umlaut ss ( #7029 )
...
* more tests for slugify
* Fix german umlauts in slugify
* Update __init__.py
2017-04-11 19:51:07 -07:00
micw
05eb73a0e3
more tests for slugify ( #7027 )
2017-04-10 22:51:46 +03:00
Magnus Ihse Bursie
b0e3d5a576
Better handling of accented characters in slugify ( #4399 ) ( #4423 )
...
* Better handling of accented characters in slugify (#4399 )
* Update __init__.py
2016-11-16 15:05:10 -08:00
Fabian Affolter
be272ac64a
Disable too-many-* ( #4107 )
...
* Disable too-many-* and too-few-public-methods
* Remove globally disabled pylint warnings
2016-10-30 22:18:53 +01:00
Paulus Schoutsen
68d92c3196
Use standardised datetime format
2016-04-16 01:46:50 -07:00
Fabian Affolter
f22a40c3e8
Fix PEP257 issues
2016-03-09 11:15:04 +01:00
Fabian Affolter
9838697d2b
Fix PEP257 issues
2016-03-09 10:25:50 +01:00
Per Sandström
562db5ea4c
Throttle for two methonds in same class
2016-02-27 23:18:56 +01:00
Paulus Schoutsen
7c6dcdb082
Catch an extra error that could break util.convert
2016-02-21 11:23:16 -08:00
Fabian Affolter
00afaac54c
Update for file header, docstrings, and PEP8/PEP257
2016-02-13 14:19:11 +01:00
Paulus Schoutsen
bc19ef66bf
Move split_entity_id to helpers
2016-01-23 22:49:49 -08:00
Paulus Schoutsen
dcfc91e71c
Fix throttle applied to methods
2015-10-11 10:42:42 -07:00
Paulus Schoutsen
47fc1deecb
Fix throttle to work on instance-level
2015-10-08 23:49:55 -07:00
Paulus Schoutsen
86aea83f64
Device tracker improvements
2015-09-15 23:35:28 -07:00
Paulus Schoutsen
cfc23b0091
Speed up tests
2015-09-12 22:56:49 -07:00
Paulus Schoutsen
0c56fde5a9
Reorg tests folder
2015-07-26 10:17:01 +02:00