Skip to content

Commit

Permalink
More tests
Browse files Browse the repository at this point in the history
  • Loading branch information
banesullivan committed Oct 20, 2023
1 parent 29968f6 commit 375e340
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/test_scooby.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,3 +252,19 @@ def rep_comp(inp):
ret = script_runner.run(['python', os.path.join('scooby', '__main__.py'), '--version'])
assert ret.success
assert "scooby v" in ret.stdout

# default: scooby-Report for matplotlibe
ret = script_runner.run(['scooby', '--report', 'matplotlib'])
assert ret.success
assert "matplotlib" in ret.stdout
assert "cycler" in ret.stdout

# handle error -- no distribution
ret = script_runner.run(['scooby', '--report', 'pathlib'])
assert not ret.success
assert "no distribution" in ret.stderr

# handle error -- not found
ret = script_runner.run(['scooby', '--report', 'foobar'])
assert not ret.success
assert "could not be imported" in ret.stderr

0 comments on commit 375e340

Please sign in to comment.