예제 #1
0
 def test_every_file_is_changed_since_the_initial_empty_commit(self):
     self.config.data['previous_versions'] = {
         str(self.origin): 'f917730de114db30e79e362cdd3ce39974f5ba84',
     }
     git = Git(self.origin, config=self.config, branch='master')
     tools.assert_true(git.has_changed('first-file'))
     tools.assert_true(git.has_changed('second-file'))
예제 #2
0
 def test_files_without_change_did_not_change(self):
     self.config.data['previous_versions'] = {
         str(self.origin): 'de1e71336916848680292588b02d173d10fdfdbf',
     }
     git = Git(self.origin, config=self.config, branch='master')
     tools.assert_false(git.has_changed('second-file'))
예제 #3
0
 def test_every_file_is_changed_if_there_is_no_previous_commits(self):
     git = Git(self.origin, config=self.config, branch='master')
     tools.assert_true(git.has_changed('first-file'))
     tools.assert_true(git.has_changed('second-file'))
예제 #4
0
 def test_repository_run_command_output(self):
     git = Git(self.origin, config=self.config, branch='master')
     tools.assert_equals(str(self.repo), git.run_command('pwd'))