summaryrefslogtreecommitdiffstats
path: root/tests/test_git_command.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_git_command.py')
-rw-r--r--tests/test_git_command.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_git_command.py b/tests/test_git_command.py
index aaf21219..ff0d395d 100644
--- a/tests/test_git_command.py
+++ b/tests/test_git_command.py
@@ -42,21 +42,21 @@ class GitCommandTest(unittest.TestCase):
42 42
43 def test_alternative_setting_when_matching(self): 43 def test_alternative_setting_when_matching(self):
44 r = git_command._build_env( 44 r = git_command._build_env(
45 objdir = 'zap/objects', 45 objdir = os.path.join('zap', 'objects'),
46 gitdir = 'zap' 46 gitdir = 'zap'
47 ) 47 )
48 48
49 self.assertIsNone(r.get('GIT_ALTERNATE_OBJECT_DIRECTORIES')) 49 self.assertIsNone(r.get('GIT_ALTERNATE_OBJECT_DIRECTORIES'))
50 self.assertEqual(r.get('GIT_OBJECT_DIRECTORY'), 'zap/objects') 50 self.assertEqual(r.get('GIT_OBJECT_DIRECTORY'), os.path.join('zap', 'objects'))
51 51
52 def test_alternative_setting_when_different(self): 52 def test_alternative_setting_when_different(self):
53 r = git_command._build_env( 53 r = git_command._build_env(
54 objdir = 'wow/objects', 54 objdir = os.path.join('wow', 'objects'),
55 gitdir = 'zap' 55 gitdir = 'zap'
56 ) 56 )
57 57
58 self.assertEqual(r.get('GIT_ALTERNATE_OBJECT_DIRECTORIES'), 'zap/objects') 58 self.assertEqual(r.get('GIT_ALTERNATE_OBJECT_DIRECTORIES'), os.path.join('zap', 'objects'))
59 self.assertEqual(r.get('GIT_OBJECT_DIRECTORY'), 'wow/objects') 59 self.assertEqual(r.get('GIT_OBJECT_DIRECTORY'), os.path.join('wow', 'objects'))
60 60
61 61
62class GitCallUnitTest(unittest.TestCase): 62class GitCallUnitTest(unittest.TestCase):