コード例 #1
0
 def test_should_upload(self):
     """should_upload should return True"""
     s3d = Deploy(self.site, self.config)
     s3d.skip_upload = ["foo", "bar"]
     s3d.changed = ["asdf/foo", "bazbaz/zap"]
     self.assertTrue(s3d.should_upload)
コード例 #2
0
 def test_should_upload(self):
     """should_upload should return True"""
     s3d = Deploy(self.site, self.config)
     s3d.skip_upload = ["foo", "bar"]
     s3d.changed = ["asdf/foo", "bazbaz/zap"]
     self.assertTrue(s3d.should_upload)
コード例 #3
0
 def test_should_upload_skip(self):
     """should skip uploading"""
     s3d = Deploy(self.site, self.config)
     s3d.skip_upload = ["/foo/foo", "bar"]
     s3d.changed = ["/foo/foo"]
     self.assertFalse(s3d.should_upload)
コード例 #4
0
 def test_should_upload_skip(self):
     """should skip uploading"""
     s3d = Deploy(self.site, self.config)
     s3d.skip_upload = ["/foo/foo", "bar"]
     s3d.changed = ["/foo/foo"]
     self.assertFalse(s3d.should_upload)