Update tests for new environment handling
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
b9ca5188a2
commit
5831b869e8
8 changed files with 32 additions and 41 deletions
|
|
@ -11,7 +11,6 @@ import pytest
|
|||
from .. import mock
|
||||
from .. import unittest
|
||||
from ..helpers import build_config
|
||||
from ..helpers import clear_environment
|
||||
from compose.cli.command import get_project
|
||||
from compose.cli.command import get_project_name
|
||||
from compose.cli.docopt_command import NoSuchCommand
|
||||
|
|
@ -44,7 +43,7 @@ class CLITestCase(unittest.TestCase):
|
|||
project_name = get_project_name(None, project_name=name)
|
||||
self.assertEquals('explicitprojectname', project_name)
|
||||
|
||||
@clear_environment
|
||||
@mock.patch.dict(os.environ)
|
||||
def test_project_name_from_environment_new_var(self):
|
||||
name = 'namefromenv'
|
||||
os.environ['COMPOSE_PROJECT_NAME'] = name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue