Example #1
0
    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()
Example #2
0
 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()
Example #3
0
 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)
Example #4
0
 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)