Skip to content

Commit

Permalink
forgot the actual test for the test
Browse files Browse the repository at this point in the history
  • Loading branch information
nickzoic committed Nov 8, 2023
1 parent 01240cc commit efa4dd4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/test_cmd.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import pytest
import csv

from countess.core.cmd import main as countess_cmd

expected_output=""""thing","foo","bar","baz","qux","number","zz"
"bar",10,2,1,4,232,0.08620689655172414
"baz",11,3,2,1,565,0.0584070796460177
"qux",12,9,8,7,999,0.10810810810810811
"""

def test_command_invocation():
countess_cmd(["countess_cmd", "simple.ini"])

with open("tests/output.csv", "r") as fh:
output = fh.read()
assert output == expected_output

0 comments on commit efa4dd4

Please sign in to comment.