Add --quiet build flag

Signed-off-by: Akshit Grover <akshit.grover2016@gmail.com>
This commit is contained in:
Akshit Grover 2019-03-02 13:07:23 +05:30
parent b09d8802ed
commit 1f97a572fe
No known key found for this signature in database
GPG key ID: 42B55D1D11B60261
6 changed files with 20 additions and 9 deletions

View file

@ -170,6 +170,13 @@ class CLITestCase(DockerClientTestCase):
# Prevent tearDown from trying to create a project
self.base_dir = None
def test_quiet_build(self):
self.base_dir = 'tests/fixtures/build-args'
result = self.dispatch(['build'], None)
quietResult = self.dispatch(['build', '-q'], None)
assert result.stdout != ""
assert quietResult.stdout == ""
def test_help_nonexistent(self):
self.base_dir = 'tests/fixtures/no-composefile'
result = self.dispatch(['help', 'foobar'], returncode=1)