Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
added new test case
  • Loading branch information
AD101\z004nm6m committed Jun 13, 2025
commit bd53ecc129be3550be9778a430d71a793726b0a9
7 changes: 6 additions & 1 deletion tests/unit_tests/fixtures/metadata_filtering_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
{"name": {"$nin": ["Smart Fitness Tracker", "Stainless Steel Water Bottle"]}},
["WH001", "EC002"],
),
## with numeric fields
# with numeric fields
(
{"available_quantity": {"$nin": [50, 0, 10]}},
["FT004"],
Expand All @@ -225,6 +225,11 @@
{"name": {"$like": "%less%"}}, # adam and jane
["WH001", "WB003"],
),
# Test combination of $like and $and
(
{"$or": [{"code": {"$like": "WH001"}}, {"code": {"$like": "EC002"}}]},
["WH001", "EC002"],
),
# These involve the special operator $exists
(
{"tags": {"$exists": False}},
Expand Down