Skip to content

Commit

Permalink
fre version testing!!
Browse files Browse the repository at this point in the history
  • Loading branch information
ilaflott committed Nov 27, 2024
1 parent 712e4eb commit f78650b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions fre/tests/test_fre_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,15 @@ def test_cli_fre_option_dne():
''' fre optionDNE '''
result = runner.invoke(fre.fre, args='optionDNE')
assert result.exit_code == 2


def test_fre_version():
''' module import flavor of below cli test '''
assert '2024.01' == fre.version

def test_cli_fre_version():
''' fre --version '''
result = runner.invoke(fre.fre, args='--version')
expected_out = 'fre, version 2024.01'
assert all( [ result.exit_code == 0,
expected_out in result.stdout.split('\n') ] )

0 comments on commit f78650b

Please sign in to comment.