Commit graph

11 commits

Author SHA1 Message Date
Paulus Schoutsen
08fe7c3ece
Pytest tests ()
* 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
Paulus Schoutsen
994b829cb4
add_devices -> add_entities ()
* add_devices -> add_entities

* Lint

* PyLint

* Revert external method in scsgate
2018-08-24 16:37:30 +02:00
Ville Skyttä
b7c336a687 Pylint cleanups ()
* Pylint 2 no-else-return fixes

* Remove unneeded abstract-class-not-used pylint disable
2018-07-23 10:16:05 +02:00
Paulus Schoutsen
81a00bf3f1 Lint Sonarr tests 2017-08-29 08:10:38 -07:00
Trevor
75559cb81f Add "status" to Sonarr sensor ()
* Use X-Api-Key header

* Increase timeout

* Add "status" to Sonarr sensor

* Update test_sonarr.py

* Update test_sonarr.py

* Update test_sonarr.py

* Update sonarr.py

* Update sonarr.py
2017-08-29 15:33:27 +02:00
Fabian Affolter
058deb5be3 Make 'monitored_conditions' optional ()
* Do not call update() in constructor

* Update tests
2017-08-06 10:07:22 +02:00
Paulus Schoutsen
aa1e4c564c Fix tests closing properly () 2017-01-07 01:47:25 +01:00
Johann Kellerman
f0b1874d2d Fix up docstring for tests () 2016-12-28 20:04:59 +02:00
Harris Borawski
44a508e86c Add exception handling to Sonarr ()
* Add exception handling to request call to prevent
failure in setup_platform if host is down

* update for comments

* update test for state being none

* remove unused import
2016-11-27 21:11:49 -08:00
Paulus Schoutsen
3f9250415f Skip broken tests () 2016-11-22 22:58:14 -08:00
Harris Borawski
85d6970df8 Add Sensor for Sonarr ()
* Add sonarr sensor and tests for sensor

* Fixed some linting errors and removed unused import

* Add SSL option for those who use SSL from within Sonarr

* Add requirements to all requirements, and sensor to coveragerc

* remove unused variable

* move methods to functions, and other lint fixes

* linting fixes

* linting is clean now

* Remove double requirement

* fix linting for docstrings, this should probably be a part of the script/lint and not just travis
2016-11-22 22:32:45 -08:00