hass-core/tests
corneyl a848dc1155
Add service for adding products to a Picnic order (#67877)
* Add Picnic services for searching products and adding products to the cart

* Improve the Picnic services implementation and add unit tests

* Fix pre-commit check issues

* Fix comments and example product name

* Remove search service, update add_product service schema

* Fix pylint suggestion

* Add more tests and removed unused code

* Remove code needed for the removed service, clean tests from obvious comments and add type hints

* Remove unused import

* Remove unnecessary comments and simplify getting the config entry id

Co-authored-by: Allen Porter <allen.porter@gmail.com>

* Don't use hass.data in tests, make device id mandatory for service

* Rewrite all service tests so using lru.cache is not needed

* Add test for uncovered line in _product_search()

* Require a config entry id as service parameter instead of device id

* Use explicit check in get_api_client() and raise HomeAssistantError

* Fix HomeAssistantError import, fix services tests

* Change HomeAssistantError to ValueError when config entry is not found

Co-authored-by: Allen Porter <allen.porter@gmail.com>
2022-11-12 20:15:45 -08:00
..
auth
backports
components Add service for adding products to a Picnic order (#67877) 2022-11-12 20:15:45 -08:00
fixtures Add HmIP-WGC to homematicip_cloud integration (#75733) 2022-11-03 12:03:49 +01:00
hassfest
helpers Create repairs issue if an outdated currency code is configured (#81717) 2022-11-08 07:21:09 +01:00
pylint
resources
scripts
test_util
testing_config Add suggested_unit_of_measurement attribute to sensors (#80638) 2022-10-24 16:08:02 +02:00
util Significantly reduce clock_gettime syscalls on platforms with broken vdso (#81257) 2022-10-31 09:35:08 -04:00
__init__.py
bandit.yaml
common.py Add CI job which runs recorder tests on MariaDB (#80586) 2022-10-19 13:04:28 +02:00
conftest.py Add CI job which runs recorder tests on MariaDB (#80586) 2022-10-19 13:04:28 +02:00
ignore_uncaught_exceptions.py
test_bootstrap.py
test_config.py Create repairs issue if an outdated currency code is configured in core store (#81772) 2022-11-10 17:28:19 +01:00
test_config_entries.py Add async_get_active_reauth_flows helper for config entries (#81881) 2022-11-09 15:36:50 -07:00
test_core.py Refactor access to ConfigStore (#80467) 2022-10-17 13:59:04 +02:00
test_data_entry_flow.py
test_exceptions.py
test_loader.py
test_main.py
test_requirements.py
test_runner.py
test_setup.py
test_test_fixtures.py