Skip to content

Commit

Permalink
Test In/NotIn query given empty list.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielballan committed May 21, 2024
1 parent 307524d commit f4e8731
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tiled/_tests/test_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ def test_in(client, query_values):
]


def test_in_empty(client):
assert list(client.search(In("letter", []))) == []


@pytest.mark.parametrize(
"query_values",
[
Expand All @@ -256,6 +260,10 @@ def test_notin(client, query_values):
)


def test_not_in_empty(client):
assert list(client.search(NotIn("letter", []))) == []


@pytest.mark.parametrize(
"include_values,exclude_values",
[
Expand Down

0 comments on commit f4e8731

Please sign in to comment.