Skip to content

Commit

Permalink
Don´t mess with test output
Browse files Browse the repository at this point in the history
  • Loading branch information
titusz committed Jul 19, 2015
1 parent e2c89ff commit a8eb1aa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_onixcheck.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from click.testing import CliRunner
from onixcheck.__main__ import main
from onixcheck import data
Expand All @@ -21,19 +22,19 @@ def test_main_o2_ref_valid():
def test_main_has_ns_valid():
runner = CliRunner()
result = runner.invoke(main, [data.VALID_ONIX3_REF_NS])
assert 'validating' in result.output.lower()
assert 'Validating' in result.output
assert result.exit_code == 0


def test_main_plain_invalid():
runner = CliRunner()
result = runner.invoke(main, [data.INVALID_ONIX3_REF])
assert 'error' in result.output.lower()
assert 'ERROR' in result.output
assert result.exit_code == 1


def test_main_debug():
runner = CliRunner()
result = runner.invoke(main, [data.VALID_ONIX3_REF, '-d'])
assert 'debug' in result.output.lower()
assert 'DEBUG' in result.output
assert result.exit_code == 0

0 comments on commit a8eb1aa

Please sign in to comment.