def test_has_changed_since_last_deploy_old_unchanged(self): k = Key(self.bucket) k.key = self.file_path k.set_contents_from_filename(self.file_path) result = has_changed_since_last_deploy(file_path=self.file_path, bucket=self.bucket) self.assertFalse(result) # Cleanup k.delete()
def test_has_changed_since_last_deploy_old_unchanged(self): k = Key(self.bucket) k.key = self.file_path k.set_contents_from_filename(self.file_path) result = has_changed_since_last_deploy( file_path=self.file_path, bucket=self.bucket ) self.assertFalse(result) # Cleanup k.delete()
def test_has_changed_since_last_deploy_new(self): result = has_changed_since_last_deploy( file_path=self.file_path, bucket=self.bucket ) self.assertTrue(result)
def test_has_changed_since_last_deploy_new(self): result = has_changed_since_last_deploy(file_path=self.file_path, bucket=self.bucket) self.assertTrue(result)