Skip to content

Commit

Permalink
covered an extra case
Browse files Browse the repository at this point in the history
  • Loading branch information
BrentBlanckaert committed Feb 19, 2025
1 parent 2cb31f5 commit 2ce6701
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_dsl_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ def test_value_built_in_checks_implied():
)


def test_file_custom_check_correct():
def test_output_files_custom_check_correct():
yaml_str = f"""
- tab: 'Test'
contexts:
Expand All @@ -792,6 +792,8 @@ def test_file_custom_check_correct():
data:
- content: !path "test/hallo.txt"
path: "test.txt"
- content: "Hallo world!"
path: "test2.txt"
oracle: "custom_check"
name: "evaluate_test"
file: "test.py"
Expand All @@ -809,6 +811,10 @@ def test_file_custom_check_correct():
assert isinstance(test.output.file.oracle, CustomCheckOracle)
assert test.output.file.path[0] == "test.txt"
assert test.output.file.content[0] == "test/hallo.txt"
assert test.output.file.content_type[0] == TextChannelType.FILE
assert test.output.file.path[1] == "test2.txt"
assert test.output.file.content[1] == "Hallo world!"
assert test.output.file.content_type[1] == TextChannelType.TEXT
oracle = test.output.file.oracle
assert oracle.function.name == "evaluate_test"
assert oracle.function.file == Path("test.py")
Expand Down

0 comments on commit 2ce6701

Please sign in to comment.