mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Skip flaky stream tests (#23493)
* Skip flaky test_hls tests * Skip flaky test_recorder tests
This commit is contained in:
parent
b09f5b6743
commit
37badbbf09
@ -2,6 +2,8 @@
|
|||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
|
|
||||||
|
import pytest
|
||||||
|
|
||||||
from homeassistant.setup import async_setup_component
|
from homeassistant.setup import async_setup_component
|
||||||
from homeassistant.components.stream import request_stream
|
from homeassistant.components.stream import request_stream
|
||||||
import homeassistant.util.dt as dt_util
|
import homeassistant.util.dt as dt_util
|
||||||
@ -11,6 +13,7 @@ from tests.components.stream.common import (
|
|||||||
generate_h264_video, preload_stream)
|
generate_h264_video, preload_stream)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skip("Flaky in CI")
|
||||||
async def test_hls_stream(hass, hass_client):
|
async def test_hls_stream(hass, hass_client):
|
||||||
"""
|
"""
|
||||||
Test hls stream.
|
Test hls stream.
|
||||||
@ -52,6 +55,7 @@ async def test_hls_stream(hass, hass_client):
|
|||||||
assert fail_response.status == 404
|
assert fail_response.status == 404
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skip("Flaky in CI")
|
||||||
async def test_stream_timeout(hass, hass_client):
|
async def test_stream_timeout(hass, hass_client):
|
||||||
"""Test hls stream timeout."""
|
"""Test hls stream timeout."""
|
||||||
await async_setup_component(hass, 'stream', {
|
await async_setup_component(hass, 'stream', {
|
||||||
@ -90,6 +94,7 @@ async def test_stream_timeout(hass, hass_client):
|
|||||||
assert fail_response.status == 404
|
assert fail_response.status == 404
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skip("Flaky in CI")
|
||||||
async def test_stream_ended(hass):
|
async def test_stream_ended(hass):
|
||||||
"""Test hls stream packets ended."""
|
"""Test hls stream packets ended."""
|
||||||
await async_setup_component(hass, 'stream', {
|
await async_setup_component(hass, 'stream', {
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
import pytest
|
||||||
|
|
||||||
from homeassistant.setup import async_setup_component
|
from homeassistant.setup import async_setup_component
|
||||||
from homeassistant.components.stream.core import Segment
|
from homeassistant.components.stream.core import Segment
|
||||||
@ -13,6 +14,7 @@ from tests.components.stream.common import (
|
|||||||
generate_h264_video, preload_stream)
|
generate_h264_video, preload_stream)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skip("Flaky in CI")
|
||||||
async def test_record_stream(hass, hass_client):
|
async def test_record_stream(hass, hass_client):
|
||||||
"""
|
"""
|
||||||
Test record stream.
|
Test record stream.
|
||||||
@ -44,6 +46,7 @@ async def test_record_stream(hass, hass_client):
|
|||||||
assert segments > 1
|
assert segments > 1
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skip("Flaky in CI")
|
||||||
async def test_recorder_timeout(hass, hass_client):
|
async def test_recorder_timeout(hass, hass_client):
|
||||||
"""Test recorder timeout."""
|
"""Test recorder timeout."""
|
||||||
await async_setup_component(hass, 'stream', {
|
await async_setup_component(hass, 'stream', {
|
||||||
@ -69,6 +72,7 @@ async def test_recorder_timeout(hass, hass_client):
|
|||||||
assert mock_cleanup.called
|
assert mock_cleanup.called
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skip("Flaky in CI")
|
||||||
async def test_recorder_save():
|
async def test_recorder_save():
|
||||||
"""Test recorder save."""
|
"""Test recorder save."""
|
||||||
# Setup
|
# Setup
|
||||||
|
Loading…
x
Reference in New Issue
Block a user