From c6ea08d1d8e0be5244b9746899ceb1ca25b6eea7 Mon Sep 17 00:00:00 2001 From: Matthew Keeler Date: Wed, 7 Aug 2024 13:03:38 -0400 Subject: [PATCH] chore: Fix test warnings --- ldclient/testing/impl/test_attribute_ref.py | 2 +- ldclient/testing/test_ldclient.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ldclient/testing/impl/test_attribute_ref.py b/ldclient/testing/impl/test_attribute_ref.py index 4370e98f..7f832765 100644 --- a/ldclient/testing/impl/test_attribute_ref.py +++ b/ldclient/testing/impl/test_attribute_ref.py @@ -38,7 +38,7 @@ def test_ref_simple_with_leading_slash(self, input: str, unescaped: str): assert a.depth == 1 assert a[0] == unescaped - @pytest.mark.parametrize("input", []) + @pytest.mark.parametrize("input", [("name"), ("name/with/slashes"), ("name~0~1with-what-looks-like-escape-sequences")]) def test_literal(self, input: str): a = AttributeRef.from_literal(input) assert a.valid is True diff --git a/ldclient/testing/test_ldclient.py b/ldclient/testing/test_ldclient.py index 8ad7c102..672dc12e 100644 --- a/ldclient/testing/test_ldclient.py +++ b/ldclient/testing/test_ldclient.py @@ -75,14 +75,12 @@ def test_client_has_null_update_processor_in_ldd_mode(): assert isinstance(client._update_processor, NullUpdateProcessor) -@pytest.mark.skip("Can't currently use a live stream processor in tests because its error logging will disrupt other tests.") def test_client_has_streaming_processor_by_default(): config = Config(sdk_key="secret", base_uri=unreachable_uri, stream_uri=unreachable_uri, send_events=False) with LDClient(config=config, start_wait=0) as client: assert isinstance(client._update_processor, StreamingUpdateProcessor) -@pytest.mark.skip("Can't currently use a live polling processor in tests because its error logging will disrupt other tests.") def test_client_has_polling_processor_if_streaming_is_disabled(): config = Config(sdk_key="secret", stream=False, base_uri=unreachable_uri, stream_uri=unreachable_uri, send_events=False) with LDClient(config=config, start_wait=0) as client: