Pārlūkot izejas kodu

Make sure we're testing uppercase directories properly

(OS X is case-sensitive so we can't have fixture dirs which are
identically named if you ignore case)

Signed-off-by: Aanand Prasad <[email protected]>
Aanand Prasad 11 gadi atpakaļ
vecāks
revīzija
9bc7604e0e

+ 6 - 0
tests/fixtures/UpperCaseDir/docker-compose.yml

@@ -0,0 +1,6 @@
+simple:
+  image: busybox:latest
+  command: /bin/sleep 300
+another:
+  image: busybox:latest
+  command: /bin/sleep 300

+ 2 - 2
tests/unit/cli_test.py

@@ -31,9 +31,9 @@ class CLITestCase(unittest.TestCase):
 
     def test_project_name_with_explicit_uppercase_base_dir(self):
         command = TopLevelCommand()
-        command.base_dir = 'tests/fixtures/Simple-figfile'
+        command.base_dir = 'tests/fixtures/UpperCaseDir'
         project_name = command.get_project_name(command.get_config_path())
-        self.assertEquals('simplefigfile', project_name)
+        self.assertEquals('uppercasedir', project_name)
 
     def test_project_name_with_explicit_project_name(self):
         command = TopLevelCommand()