Skip to content

Commit 5c8073c

Browse files
committed
Try to force client key to exist on test_calculated_channel
1 parent 88bd7cb commit 5c8073c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

python/lib/sift_client/_tests/resources/test_calculated_channels.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
CalculatedChannelUpdate,
2222
)
2323
from sift_client.sift_types.channel import ChannelReference
24+
from sift_client.util import cel_utils as cel
2425

2526
pytestmark = pytest.mark.integration
2627

@@ -46,7 +47,9 @@ def calculated_channels_api_sync(sift_client: SiftClient):
4647

4748
@pytest.fixture
4849
def test_calculated_channel(calculated_channels_api_sync):
49-
calculated_channels = calculated_channels_api_sync.list_(limit=1, include_archived=True)
50+
calculated_channels = calculated_channels_api_sync.list_(
51+
limit=1, include_archived=True, filter_query=cel.not_(cel.equals("client_key", ""))
52+
)
5053
assert calculated_channels
5154
assert len(calculated_channels) >= 1
5255
return calculated_channels[0]

0 commit comments

Comments
 (0)