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'))
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'))
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'))