Skip to content

Commit c2e0358

Browse files
committed
feat: add unit tests for layout ranker and content-aware selector modules
1 parent 441618a commit c2e0358

6 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/modules/rankers/__init__.py

Whitespace-only changes.

tests/modules/rankers_test.py renamed to tests/modules/rankers/layout_prompter_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,4 +184,4 @@ def test_all_empty_layouts(self):
184184

185185
# All inputs have empty layouts, should raise ValueError
186186
with pytest.raises(ValueError):
187-
ranker.invoke([empty_data1, empty_data2])
187+
ranker.invoke([empty_data1, empty_data2])

tests/modules/selectors/__init__.py

Whitespace-only changes.

tests/modules/selectors_test.py renamed to tests/modules/selectors/content_aware_selector_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ def test_content_aware_selector(
8484
selector = ContentAwareSelector(examples=candidate_examples)
8585
selector_output = selector.select_examples(processed_test_data)
8686

87-
assert len(selector_output.selected_examples) == num_prompt
87+
assert len(selector_output.selected_examples) == num_prompt

tests/modules/serializers/__init__.py

Whitespace-only changes.

tests/modules/serializers_test.py renamed to tests/modules/serializers/content_aware_serializer_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,4 @@ def test_content_aware_serializer(
102102
},
103103
)
104104
for message in prompt.to_messages():
105-
message.pretty_print()
105+
message.pretty_print()

0 commit comments

Comments
 (0)