diff --git a/tests/test_scooby.py b/tests/test_scooby.py index dfb7805..b55c014 100644 --- a/tests/test_scooby.py +++ b/tests/test_scooby.py @@ -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