7f6276be97
Add quality scale review agentic workflow ( #182431 )
...
Co-authored-by: Markus Tuominen <3738613+Markus98@users.noreply.github.com >
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com >
2026-10-01 17:55:40 +01:00
Erik Montnemery
baa319aa2b
Remove support for installing Python dependencies in the config dir ( #168155 )
2026-10-01 15:08:48 +02:00
epenet and Claude Opus 5
c9b0e6b230
Adjust CI to always include dependent integrations ( #182182 )
...
Co-authored-by: Claude Opus 5 <noreply@anthropic.com >
2026-09-28 20:07:14 +02:00
Robert Resch
bd92409b6a
Extend check requirements aw to check Gitlab and Codeberg ( #179618 )
2026-08-24 18:12:38 +02:00
Robert Resch
5ecc8fabb1
Don't use the new default port (80) during yaml http config migration ( #177638 )
2026-07-30 17:13:04 +02:00
Robert Resch
6411cc5c48
Improve the gate on check requirements aw to avoid useless runs ( #174599 )
2026-06-25 16:48:51 +02:00
Robert Resch
c6de1e9c5d
Fix summary for aw check requirements ( #174160 )
2026-06-18 09:31:59 +02:00
Robert Resch
210746525e
Fix missing full sha as hidden field in requirements check aw ( #173900 )
2026-06-16 11:05:08 +02:00
Robert Resch
735ef5fc14
Add head SHA tracking to requirements check workflow ( #173874 )
2026-06-15 15:24:02 +02:00
29badf6651
Add basic security check to dependency workflow ( #171191 )
...
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com >
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2026-06-11 17:38:42 +02:00
8c8620c511
Add check requirements yanked and CVE check ( #171641 )
...
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com >
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2026-05-21 12:54:15 +02:00
Robert Resch
3856405c72
Add aw check requirements async block check ( #171642 )
2026-05-21 01:28:32 +02:00
Robert Resch and Copilot Autofix powered by AI
b724e52408
Reduce token usage by moving deterministic checks to python ( #171466 )
...
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com >
2026-05-20 17:59:20 +02:00
Tom Monck JR
6a7de24a04
Fix args passed to check_config script ( #155885 )
2025-11-06 19:27:53 +02:00
Erik Montnemery
bccb646a07
Create issue to warn against using http.server_host in supervised installs ( #155837 )
2025-11-05 12:13:56 +01:00
Erik Montnemery
52a751507a
Revert "Deprecate http.server_host option and raise issue if used" ( #155834 )
2025-11-05 11:26:14 +01:00
Erik Montnemery
47c2c61626
Deprecate http.server_host option and raise issue if used ( #155828 )
2025-11-05 11:08:49 +01:00
Benjamin Michaelis
acead56bd5
Enhance check_config script with JSON output and fail on warnings ( #152575 )
2025-10-19 21:55:55 +02:00
Marc Mueller
3d2dca5f0c
Adjust scripts for compatibility with Python 3.14 ( #146774 )
2025-06-13 21:54:25 -04:00
Marc Mueller
5e377b89fc
Update pytest-asyncio to 1.0.0 ( #145988 )
...
* Update pytest-asyncio to 1.0.0
* Remove event_loop fixture uses
2025-06-02 06:12:22 +02:00
Erik Montnemery
dfd86d56ec
Convert test fixtures to async ( #142052 )
2025-04-02 14:05:07 +02:00
epenet
f3e2d06922
Add missing hass type in tests/scripts ( #124042 )
2024-08-16 13:21:39 +02:00
Marc Mueller
ca55986057
Import Generator from collections.abc (1) ( #120914 )
2024-07-01 11:51:51 +02:00
epenet
f4b76406f2
Add capsys to enforce-type-hints plugin ( #120653 )
2024-06-27 19:54:44 +02:00
epenet
01be5d5f6b
Move fixtures to decorators in core tests ( #119675 )
2024-06-14 13:32:42 +02:00
epenet
a59621bf9e
Add more type hints to pylint plugin ( #118319 )
2024-05-28 18:37:38 +02:00
Robert Resch
cb62f4242e
Remove strict connection ( #117933 )
2024-05-24 15:50:22 +02:00
Robert Resch
630ddd6a8c
Revert "Remove strict connection" ( #116416 )
2024-04-29 21:26:40 +02:00
Robert Resch
dfc198cae0
Remove strict connection ( #116396 )
2024-04-29 19:33:31 +02:00
Robert Resch and Martin Hjelmare
348e1df949
Add strict connection ( #112387 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2024-04-12 14:47:46 +02:00
9bf87329da
Enable Ruff FLY002 rule ( #115112 )
...
Co-authored-by: J. Nick Koston <nick@koston.org >
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com >
2024-04-12 09:04:16 +02:00
J. Nick Koston
7a2e529bb7
Avoid executor job to start http if server_host is unspecified ( #114609 )
...
* Avoid executor job to start http if server_host is unspecified
Same as #112522 for http
* adjust test
* CONF_SERVER_HOST is always set now
2024-04-04 07:51:18 +02:00
Sid
d5f883fbf0
Unignore Ruff PLR in tests ( #114470 )
...
* Unignore Ruff PLR in tests
* Address review comments
* review comments
* fix import
* Update test_api.py
* Update test_api.py
* Update test_api.py
2024-04-01 11:11:59 +02:00
Marc Mueller
a6b842f818
Add empty line after module docstring (2) [other] ( #112738 )
2024-03-08 19:16:38 +01:00
Marc Mueller
19ab3d6daf
Add empty line after module docstring [helpers + other] ( #112707 )
2024-03-08 10:36:11 -05:00
Marc Mueller
de066c7fc0
Reset log level in script tests ( #109881 )
2024-02-07 17:22:10 +01:00
Erik Montnemery
25bea91683
Use modern platform path when reporting platform config errors ( #104238 )
...
* Use modern platform path when reporting platform config errors
* Update tests
* Address review comment
* Explicitly pass platform domain to log helpers
* Revert overly complicated changes
* Try a simpler solution
2023-12-05 15:06:13 +01:00
Erik Montnemery
3ba8a82243
Differentiate between warnings and errors in check_config helper ( #102902 )
...
* Differentiate between warnings and errors in check_config helper
* Update tests
* Treat configuration errors in frontend and its dependencies as errors
* Improve test coverage
* Address review comments
* Improve test coverage
* Improve test coverage
* Address review comments
* Add comment
2023-11-05 03:08:04 +01:00
Franck Nijhof
369a484a78
Add default headers to webserver responses ( #97784 )
...
* Add default headers to webserver responses
* Set default server header
* Fix other tests
2023-08-06 23:25:13 -04:00
4f6a25b470
Allow parameterizing YAML config in tests ( #87981 )
...
* Add fixture to parameterize yaml config
* Apply to more tests
* Re-add @fixture label
* Add fixtures to patch yaml content and targets
* Typo
* Improve docstr
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com >
* Update references to mock_yaml_configuration
* Apply new fixtures
* Apply to check_config tests
* Follow up comments
* Rename fixtures, update docstr
* Split paths
* Patch load_yaml_config_file instead
* sort
* Fix tests
* improve docst
* Rename fixtures
* sorting
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com >
* Improve docstr
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com >
* Improve docstr
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com >
* Improve docstr
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com >
* Improve docstr
Co-authored-by: Erik Montnemery <erik@montnemery.com >
* Improve docstr
Co-authored-by: Erik Montnemery <erik@montnemery.com >
* Improve docstr
Co-authored-by: Erik Montnemery <erik@montnemery.com >
---------
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com >
Co-authored-by: Erik Montnemery <erik@montnemery.com >
2023-02-20 16:57:12 +01:00
epenet
5f25b71df7
Add type hints to core tests ( #88478 )
2023-02-20 11:42:56 +01:00
epenet
b7b82b1e3f
Add more type hints to conftest.py ( #87842 )
...
* Add more type hints in conftest.py
* Adjust stop_hass
* Adjust mock_integration_frame
* Adjust pylint plugin
2023-02-11 13:48:53 +01:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 ( #87188 )
2023-02-02 18:35:24 +01:00
Franck Nijhof and jjlawren
e50a531cd9
Code styling tweaks to the tests - Part 2 ( #86662 )
...
Co-authored-by: jjlawren <jjlawren@users.noreply.github.com >
2023-01-26 01:23:53 +01:00
Joakim Plate
c576a68d33
Upgrade pytest-aiohttp ( #82475 )
...
* Upgrade pytest-aiohttp
* Make sure executors, tasks and timers are closed
Some test will trigger warnings on garbage collect, these warnings
spills over into next test.
Some test trigger tasks that raise errors on shutdown, these spill
over into next test.
This is to mimic older pytest-aiohttp and it's behaviour on test
cleanup.
Discussions on similar changes for pytest-aiohttp are here:
https://github.com/pytest-dev/pytest-asyncio/pull/309
* Replace loop with event_loop
* Make sure time is frozen for tests
* Make sure the ConditionType is not async
/home-assistant/homeassistant/helpers/template.py:2082: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited
def wrapper(*args, **kwargs):
Enable tracemalloc to get traceback where the object was allocated.
See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
* Increase litejet press tests with a factor 10
The times are simulated anyway, and we can't stop the normal
event from occuring.
* Use async handlers for aiohttp
tests/components/motioneye/test_camera.py::test_get_still_image_from_camera
tests/components/motioneye/test_camera.py::test_get_still_image_from_camera
tests/components/motioneye/test_camera.py::test_get_stream_from_camera
tests/components/motioneye/test_camera.py::test_get_stream_from_camera
tests/components/motioneye/test_camera.py::test_camera_option_stream_url_template
tests/components/motioneye/test_camera.py::test_camera_option_stream_url_template
/Users/joakim/src/hass/home-assistant/venv/lib/python3.9/site-packages/aiohttp/web_urldispatcher.py:189: DeprecationWarning: Bare functions are deprecated, use async ones
warnings.warn(
* Switch to freezegun in modbus tests
The tests allowed clock to tick in between steps
* Make sure skybell object are fully mocked
Old tests would trigger attempts to post to could services:
```
DEBUG:aioskybell:HTTP post https://cloud.myskybell.com/api/v3/login/ Request with headers: {'content-type': 'application/json', 'accept': '*/*', 'x-skybell-app-id': 'd2b542c7-a7e4-4e1e-b77d-2b76911c7c46', 'x-skybell-client-id': '1f36a3c0-6dee-4997-a6db-4e1c67338e57'}
```
* Fix sorting that broke after rebase
2022-11-29 22:36:36 +01:00
J. Nick Koston and Joakim Sørensen
eb98ac9415
Allow IntegrationNotFound when checking config in safe mode ( #56283 )
...
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev >
2021-09-17 22:25:50 -07:00
Paulus Schoutsen
7111fc47c4
Better handle invalid trigger config ( #55637 )
2021-09-03 10:15:57 -07:00
tkdrob
a5a45f29e2
Cleanup unused loggers ( #46510 )
2021-02-14 13:46:58 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Stefan Agner and Paulus Schoutsen
c2f5831181
Support dual stack IP support (IPv4 and IPv6) ( #38046 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io >
2020-08-04 15:34:23 +02:00