Skip to content

Commit 4bfcdb8

Browse files
authored
chore: Fix test warnings (#302)
1 parent bd3b2f8 commit 4bfcdb8

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

ldclient/testing/impl/test_attribute_ref.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_ref_simple_with_leading_slash(self, input: str, unescaped: str):
3838
assert a.depth == 1
3939
assert a[0] == unescaped
4040

41-
@pytest.mark.parametrize("input", [])
41+
@pytest.mark.parametrize("input", [("name"), ("name/with/slashes"), ("name~0~1with-what-looks-like-escape-sequences")])
4242
def test_literal(self, input: str):
4343
a = AttributeRef.from_literal(input)
4444
assert a.valid is True

ldclient/testing/test_ldclient.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,12 @@ def test_client_has_null_update_processor_in_ldd_mode():
7575
assert isinstance(client._update_processor, NullUpdateProcessor)
7676

7777

78-
@pytest.mark.skip("Can't currently use a live stream processor in tests because its error logging will disrupt other tests.")
7978
def test_client_has_streaming_processor_by_default():
8079
config = Config(sdk_key="secret", base_uri=unreachable_uri, stream_uri=unreachable_uri, send_events=False)
8180
with LDClient(config=config, start_wait=0) as client:
8281
assert isinstance(client._update_processor, StreamingUpdateProcessor)
8382

8483

85-
@pytest.mark.skip("Can't currently use a live polling processor in tests because its error logging will disrupt other tests.")
8684
def test_client_has_polling_processor_if_streaming_is_disabled():
8785
config = Config(sdk_key="secret", stream=False, base_uri=unreachable_uri, stream_uri=unreachable_uri, send_events=False)
8886
with LDClient(config=config, start_wait=0) as client:

0 commit comments

Comments
 (0)