Skip to content
This repository has been archived by the owner on Jan 19, 2018. It is now read-only.

Commit

Permalink
tests: fix test to look for output in stdout vs stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
dustymabe committed Feb 19, 2016
1 parent 2b8264c commit 86e87be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/units/cli/test_default_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@ def test_run_helloapache_app(self, capsys):
# Run the dry-run command
with pytest.raises(SystemExit) as exec_info:
self.exec_cli(command)
nil, out = capsys.readouterr()
stdout, stderr = capsys.readouterr()

# Tear down and remove all those useless generated files
self.tear_down()

# Print out what we've captured just in case the test fails
print out
print stdout

# Since this a Docker-only provider test, docker *should* be in it, NOT Kubernetes
assert "u'provider': u'docker'" in out
assert "Deploying to Kubernetes" not in out
assert "u'provider': u'docker'" in stdout
assert "Deploying to Kubernetes" not in stdout

assert exec_info.value.code == 0

0 comments on commit 86e87be

Please sign in to comment.