Exemple #1
0
 def test_timing_file_path_happy_path(self):
     git_env = Git("ssh://scm.dev.box.net/box/www/current", 'origin', 'refs/changes/78/151978/27')
     timing_file = git_env.timing_file_path('QUnit')
     self.assertEquals(
         Configuration['base_directory'] +
         '/timings/master/scm.dev.box.net/box/www/current/QUnit.timing.json',
         timing_file
     )
Exemple #2
0
 def test_timing_file_path_happy_path(self):
     git_env = Git("ssh://scm.dev.box.net/box/www/current", 'origin',
                   'refs/changes/78/151978/27')
     timing_file = git_env.timing_file_path('QUnit')
     self.assertEquals(
         Configuration['base_directory'] +
         '/timings/master/scm.dev.box.net/box/www/current/QUnit.timing.json',
         timing_file)
Exemple #3
0
 def test_timing_file_path_happy_path(self):
     git_env = Git("ssh://scm.dev.box.net/box/www/current", 'origin', 'refs/changes/78/151978/27')
     actual_timing_file_sys_path = git_env.timing_file_path('QUnit')
     expected_timing_file_sys_path = join(
         Configuration['base_directory'],
         'timings',
         'master',
         'scm.dev.box.net',
         'box',
         'www',
         'current',
         'QUnit.timing.json',
     )
     self.assertEquals(expected_timing_file_sys_path, actual_timing_file_sys_path)
Exemple #4
0
 def test_timing_file_path_happy_path(self):
     git_env = Git("ssh://scm.dev.box.net/box/www/current", 'origin', 'refs/changes/78/151978/27')
     actual_timing_file_sys_path = git_env.timing_file_path('QUnit')
     expected_timing_file_sys_path = join(
         Configuration['base_directory'],
         'timings',
         'master',
         'scm.dev.box.net',
         'box',
         'www',
         'current',
         'QUnit.timing.json',
     )
     self.assertEquals(expected_timing_file_sys_path, actual_timing_file_sys_path)