Skip to content

Commit 43d6e0f

Browse files
authored
Fix test_list_with_sort_dir (#74)
Splunk orders these case insensitively, thus we have to lower these before doing a compare.
1 parent 8171f30 commit 43d6e0f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/integration/test_collection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,11 @@ def test(coll_name):
160160
expected_kwargs["sort_key"] = "sid"
161161
found_kwargs["sort_key"] = "sid"
162162
expected = list(
163-
reversed([ent.name for ent in coll.list(**expected_kwargs)])
163+
reversed([ent.name.lower() for ent in coll.list(**expected_kwargs)])
164164
)
165165
if len(expected) == 0:
166166
logging.debug(f"No entities in collection {coll_name}; skipping test.")
167-
found = [ent.name for ent in coll.list(**found_kwargs)]
167+
found = [ent.name.lower() for ent in coll.list(**found_kwargs)]
168168

169169
if expected != found:
170170
logging.warning(

0 commit comments

Comments
 (0)