hass-core/tests
Allen Porter 23277181ca
Increase test coverage for google calendar (#62648)
* Increase test coverage for google calendar

Update tests to exercise the API responses, getting test coverage
to 97% for calendar.py

----------- coverage: platform linux, python 3.9.6-final-0 -----------
Name                                          Stmts   Miss  Cover   Missing
---------------------------------------------------------------------------
homeassistant/components/google/__init__.py     193     84    56%   92, 163-228, 238, 244-247, 254-262, 274, 298-299, 305-347, 387-392, 416-430, 435-437
homeassistant/components/google/calendar.py     122      4    97%   41, 45, 51, 135
---------------------------------------------------------------------------
TOTAL                                           315     88    72%

* Revert conftest changes

* Update typing errors found on CI

* Update python3.8 typing imports

* Remove commented out code
2021-12-23 07:31:56 +01:00
..
auth Add local only users (#57598) 2021-11-29 14:01:03 -08:00
backports Move StrEnum to homeassistant.backports and move Platform to homeassistant.const (#60880) 2021-12-03 09:31:17 +01:00
components Increase test coverage for google calendar (#62648) 2021-12-23 07:31:56 +01:00
fixtures Fix regression after merging fixtures with old path (#59187) 2021-11-05 21:10:55 +01:00
hassfest Fix issue with ranges in requirements with hassfest (#59470) 2021-11-12 09:39:30 +01:00
helpers Add iif (immediate if) template function/filter (#61428) 2021-12-21 17:25:07 +01:00
mock Disable strict type checks for tests (#49851) 2021-04-29 15:57:02 +02:00
resources
scripts Allow IntegrationNotFound when checking config in safe mode (#56283) 2021-09-17 22:25:50 -07:00
test_util Use HTTPStatus instead of HTTP_* constants in various test mocks (#56543) 2021-10-01 15:52:45 -07:00
testing_config Use enums for testing_config (#62140) 2021-12-17 11:10:06 +01:00
util Add additional guarding to color_rgb_to_rgbww (#62220) 2021-12-19 09:44:53 -06:00
__init__.py
bandit.yaml Enable more Bandit tests (#44307) 2020-12-19 12:35:13 +01:00
common.py Remaining DeviceAutomationType bits (#62508) 2021-12-21 20:05:48 +02:00
conftest.py Introduce only_supervisor for @websocket_api.ws_require_user() (#61298) 2021-12-08 16:49:35 -08:00
ignore_uncaught_exceptions.py Log unhandled loop exception traces when asyncio debug is on (#57602) 2021-10-18 20:07:51 -07:00
test_bootstrap.py Report integrations that block startup wrap up (#56003) 2021-09-09 20:39:22 -07:00
test_config.py Make core config source an enum (#61966) 2021-12-19 18:02:52 +01:00
test_config_entries.py Use RegistryEntryDisabler (#60436) 2021-12-15 23:25:40 +02:00
test_core.py Make core config source an enum (#61966) 2021-12-19 18:02:52 +01:00
test_data_entry_flow.py Index in-progress flows to avoid linear search (#58146) 2021-10-22 07:19:49 -10:00
test_exceptions.py Remove stale debug statements from tests (#51059) 2021-05-25 11:52:20 +02:00
test_loader.py Align zeroconf matching with ZeroconfServiceInfo (#62133) 2021-12-19 02:09:21 -06:00
test_main.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
test_requirements.py Avoid checking if a package is installed if it already failed (#56698) 2021-09-26 22:32:25 -07:00
test_runner.py Log unhandled loop exception traces when asyncio debug is on (#57602) 2021-10-18 20:07:51 -07:00
test_setup.py Replace http startup logic with async_when_setup_or_start (#48784) 2021-04-13 14:10:58 -07:00
test_test_fixtures.py Block tests from opening sockets (#55516) 2021-10-05 14:46:09 -10:00