diff --git a/ldclient/testing/impl/test_attribute_ref.py b/ldclient/testing/impl/test_attribute_ref.py index 4370e98..7f83276 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 8ad7c10..672dc12 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: