mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-24 18:27:03 +00:00
* Strip ANSI escape color sequences from /latest log responses Strip ANSI sequences of CSI commands [1] used for log coloring from /latest log endpoints. These endpoint were primarily designed for log downloads and colors are mostly not wanted in those. Add optional argument for stripping the colors from the logs and enable it for the /latest endpoints. [1] https://en.wikipedia.org/wiki/ANSI_escape_code#CSIsection * Refactor advanced logs' tests to use fixture factory Introduce `advanced_logs_tester` fixture to simplify testing of advanced logs in the API tests, declaring all the needed fixture in a single place. # Please enter the commit message for your changes. Lines starting
7 lines
181 B
Python
7 lines
181 B
Python
"""Test multicast api."""
|
|
|
|
|
|
async def test_api_multicast_logs(advanced_logs_tester):
|
|
"""Test multicast logs."""
|
|
await advanced_logs_tester("/multicast", "hassio_multicast")
|