Commit bd1f3e48 authored by David Trudgian's avatar David Trudgian
Browse files

Empty tests

parent ba6ab15a
sudo: false
language: python
python:
- "2.7"
- "3.4"
install: pip install tox-travis
script: tox
......@@ -7,23 +7,3 @@ from clair_singularity import cli
def runner():
return CliRunner()
def test_cli(runner):
result = runner.invoke(cli.main)
assert result.exit_code == 0
assert not result.exception
assert result.output.strip() == 'Hello, world.'
def test_cli_with_option(runner):
result = runner.invoke(cli.main, ['--as-cowboy'])
assert not result.exception
assert result.exit_code == 0
assert result.output.strip() == 'Howdy, world.'
def test_cli_with_arg(runner):
result = runner.invoke(cli.main, ['David'])
assert result.exit_code == 0
assert not result.exception
assert result.output.strip() == 'Hello, David.'
[tox]
envlist=py26, py27, py33, py34, pypy, flake8
envlist=py27, py34, py35, py36, pypy, flake8
[testenv]
commands=py.test --cov clair_singularity {posargs}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment