Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3885,7 +3885,7 @@ def test_read_concurrent_declarative_source(
output_data = [
message.record.data for message in _run_read(manifest, _stream_name) if message.record
]
assert output_data == expected_records
assert sorted(output_data, key=lambda x: (x.get("partition", 0), x.get("ABC", 0), x.get("AED", 0))) == sorted(expected_records, key=lambda x: (x.get("partition", 0), x.get("ABC", 0), x.get("AED", 0)))
Copy link

Copilot AI Aug 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sorting key logic is duplicated and creates a very long line. Consider extracting the key function to improve readability and reduce duplication: sort_key = lambda x: (x.get(\"partition\", 0), x.get(\"ABC\", 0), x.get(\"AED\", 0)) then use assert sorted(output_data, key=sort_key) == sorted(expected_records, key=sort_key)

Copilot uses AI. Check for mistakes.

mock_retriever.assert_has_calls(expected_calls)


Expand Down
Loading