Skip to content

Commit

Permalink
fixed last tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BrentBlanckaert committed Feb 18, 2025
1 parent a845fb2 commit e939f30
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions tests/test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
MainInput,
TextData,
TextOutputChannel,
ValueOutputChannel,
ValueOutputChannel, TextChannelType,
)


Expand All @@ -33,6 +33,9 @@ def test_text_output_is_compatible_oracle():

def test_file_output_is_compatible_oracle():
old_structure = {
"content_type": [TextChannelType.TEXT],
"content": ["some content"],
"path": ["output.py"],
"evaluator": {
"function": {"file": "evaluate.py"},
"type": "custom_check",
Expand Down Expand Up @@ -108,13 +111,15 @@ def test_file_show_expected_is_accepted():
scheme = """
{
"show_expected": true,
"expected_path": "hallo",
"actual_path": "hallo"
"content": ["hallo"],
"path": ["hallo"],
"content_type": ["text"]
}
"""
result = get_converter().loads(scheme, FileOutputChannel)
assert result.content == "hallo"
assert result.path == "hallo"

assert result.content == ["hallo"]
assert result.path == ["hallo"]


def test_value_show_expected_is_accepted():
Expand Down

0 comments on commit e939f30

Please sign in to comment.