Skip to content

Commit

Permalink
feat: Allow user to specify a format for stdout, format for text resu…
Browse files Browse the repository at this point in the history
…lt handler (#242)
  • Loading branch information
Yogesh Tewari committed Jul 30, 2021
1 parent f41759b commit 1259529
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit/result_handlers/test_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ def test_import(module_under_test):

def test_basic_result_handler(module_under_test):
"""Test basic handler executes """
format = "json"
result_df = DataFrame(SAMPLE_RESULT_DATA)
result_handler = module_under_test.TextResultHandler()

handler_output = result_handler.execute(SAMPLE_CONFIG, result_df)
handler_output = result_handler.execute(SAMPLE_CONFIG, format, result_df)
assert handler_output["count"].sum() == result_df["count"].sum()

0 comments on commit 1259529

Please sign in to comment.