Make TopLevelCommand use the project field.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2016-03-08 14:35:54 -05:00
commit 9f9dcc098a
2 changed files with 54 additions and 55 deletions

View file

@ -89,7 +89,7 @@ class CLITestCase(unittest.TestCase):
command = TopLevelCommand(project)
with pytest.raises(SystemExit):
command.run(project, {
command.run({
'SERVICE': 'service',
'COMMAND': None,
'-e': [],
@ -122,7 +122,7 @@ class CLITestCase(unittest.TestCase):
)
command = TopLevelCommand(project)
command.run(project, {
command.run({
'SERVICE': 'service',
'COMMAND': None,
'-e': [],
@ -143,7 +143,7 @@ class CLITestCase(unittest.TestCase):
)
command = TopLevelCommand(project)
command.run(project, {
command.run({
'SERVICE': 'service',
'COMMAND': None,
'-e': [],
@ -173,7 +173,7 @@ class CLITestCase(unittest.TestCase):
command = TopLevelCommand(project)
with self.assertRaises(UserError):
command.run(project, {
command.run({
'SERVICE': 'service',
'COMMAND': None,
'-e': [],