From 882e2e6604f6ed6e10627212bcc8f54165d3de15 Mon Sep 17 00:00:00 2001 From: Himanshu Barak Date: Sat, 10 Feb 2024 08:30:54 +0530 Subject: [PATCH] marked non-offline tests as live only --- .../azure-core/tests/async_tests/test_streaming_async.py | 6 ++++++ sdk/core/azure-core/tests/test_streaming.py | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/sdk/core/azure-core/tests/async_tests/test_streaming_async.py b/sdk/core/azure-core/tests/async_tests/test_streaming_async.py index 8e005344561d..2b26fadec422 100644 --- a/sdk/core/azure-core/tests/async_tests/test_streaming_async.py +++ b/sdk/core/azure-core/tests/async_tests/test_streaming_async.py @@ -31,6 +31,7 @@ from utils import HTTP_REQUESTS +@pytest.mark.live_test_only @pytest.mark.asyncio @pytest.mark.parametrize("http_request", HTTP_REQUESTS) async def test_decompress_plain_no_header(http_request): @@ -51,6 +52,7 @@ async def test_decompress_plain_no_header(http_request): assert decoded == "test" +@pytest.mark.live_test_only @pytest.mark.asyncio @pytest.mark.parametrize("http_request", HTTP_REQUESTS) async def test_compress_plain_no_header(http_request): @@ -71,6 +73,7 @@ async def test_compress_plain_no_header(http_request): assert decoded == "test" +@pytest.mark.live_test_only @pytest.mark.asyncio @pytest.mark.parametrize("http_request", HTTP_REQUESTS) async def test_decompress_compressed_no_header(http_request): @@ -94,6 +97,7 @@ async def test_decompress_compressed_no_header(http_request): pass +@pytest.mark.live_test_only @pytest.mark.asyncio @pytest.mark.parametrize("http_request", HTTP_REQUESTS) async def test_compress_compressed_no_header(http_request): @@ -141,6 +145,7 @@ async def test_decompress_plain_header(http_request): pass +@pytest.mark.live_test_only @pytest.mark.asyncio @pytest.mark.parametrize("http_request", HTTP_REQUESTS) async def test_compress_plain_header(http_request): @@ -161,6 +166,7 @@ async def test_compress_plain_header(http_request): assert decoded == "test" +@pytest.mark.live_test_only @pytest.mark.asyncio @pytest.mark.parametrize("http_request", HTTP_REQUESTS) async def test_decompress_compressed_header(http_request): diff --git a/sdk/core/azure-core/tests/test_streaming.py b/sdk/core/azure-core/tests/test_streaming.py index c636fc2637c0..fb1e16921c42 100644 --- a/sdk/core/azure-core/tests/test_streaming.py +++ b/sdk/core/azure-core/tests/test_streaming.py @@ -31,6 +31,7 @@ from utils import HTTP_REQUESTS +@pytest.mark.live_test_only @pytest.mark.parametrize("http_request", HTTP_REQUESTS) def test_decompress_plain_no_header(http_request): # expect plain text @@ -79,6 +80,7 @@ def test_compress_plain_no_header(http_request): assert decoded == "test" +@pytest.mark.live_test_only @pytest.mark.parametrize("http_request", HTTP_REQUESTS) def test_decompress_compressed_no_header(http_request): # expect compressed text @@ -158,6 +160,7 @@ def test_decompress_plain_header_offline(port, http_request): list(data) +@pytest.mark.live_test_only @pytest.mark.parametrize("http_request", HTTP_REQUESTS) def test_compress_plain_header(http_request): # expect plain text @@ -204,6 +207,7 @@ def test_decompress_compressed_header_offline(port, http_request): assert decoded == "test" +@pytest.mark.live_test_only @pytest.mark.parametrize("http_request", HTTP_REQUESTS) def test_compress_compressed_header(http_request): # expect compressed text