diff options
author | Jason Pleau <jason@jpleau.ca> | 2018-04-10 22:11:26 -0400 |
---|---|---|
committer | Jason Pleau <jason@jpleau.ca> | 2018-04-10 22:11:26 -0400 |
commit | fd2e9ebf85f9a2d74cb3fbc1bf192411ee53f7a3 (patch) | |
tree | 0487341ef91eae2f88572e23103fe4c2e2ec784c /tests/unit/cli_test.py | |
parent | 6136c5daf397798bd6f5a4b2e518c3aed482eb21 (diff) | |
parent | 19c331f0b3635bd24751a0e05fe26d9ca5f5e80d (diff) |
Update upstream source from tag 'upstream/1.21.0'
Update to upstream version '1.21.0'
with Debian dir 61b1e7e5bdf2ec0aea565ef76800bbd659b048ac
Diffstat (limited to 'tests/unit/cli_test.py')
-rw-r--r-- | tests/unit/cli_test.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit/cli_test.py b/tests/unit/cli_test.py index 47eaabf9..7c8a1423 100644 --- a/tests/unit/cli_test.py +++ b/tests/unit/cli_test.py @@ -30,12 +30,12 @@ class CLITestCase(unittest.TestCase): test_dir = py._path.local.LocalPath('tests/fixtures/simple-composefile') with test_dir.as_cwd(): project_name = get_project_name('.') - assert 'simplecomposefile' == project_name + assert 'simple-composefile' == project_name def test_project_name_with_explicit_base_dir(self): base_dir = 'tests/fixtures/simple-composefile' project_name = get_project_name(base_dir) - assert 'simplecomposefile' == project_name + assert 'simple-composefile' == project_name def test_project_name_with_explicit_uppercase_base_dir(self): base_dir = 'tests/fixtures/UpperCaseDir' @@ -45,7 +45,7 @@ class CLITestCase(unittest.TestCase): def test_project_name_with_explicit_project_name(self): name = 'explicit-project-name' project_name = get_project_name(None, project_name=name) - assert 'explicitprojectname' == project_name + assert 'explicit-project-name' == project_name @mock.patch.dict(os.environ) def test_project_name_from_environment_new_var(self): @@ -59,7 +59,7 @@ class CLITestCase(unittest.TestCase): with mock.patch.dict(os.environ): os.environ['COMPOSE_PROJECT_NAME'] = '' project_name = get_project_name(base_dir) - assert 'simplecomposefile' == project_name + assert 'simple-composefile' == project_name @mock.patch.dict(os.environ) def test_project_name_with_environment_file(self): @@ -80,7 +80,7 @@ class CLITestCase(unittest.TestCase): def test_get_project(self): base_dir = 'tests/fixtures/longer-filename-composefile' project = get_project(base_dir) - assert project.name == 'longerfilenamecomposefile' + assert project.name == 'longer-filename-composefile' assert project.client assert project.services |