testing/buildbot/scripts/upload_test_result_artifacts_unittest.py
def testUploadArtifactsMissingType(self):
    """Tests that the type information is used for validation."""
    data = {
        'artifact_type_info': {
            'log': 'text/plain'
        },
        'tests': {
          'foo': {
            'actual': 'PASS',
            'expected': 'PASS',
            'artifacts': {
                'screenshot': 'foo.png',
            }
          }
        }
    }
    with self.assertRaises(ValueError):
      upload_test_result_artifacts.upload_artifacts(
          data, '/tmp', True, 'test-bucket')
Tests that the type information is used for validation.
Tests that the type information is used for validation.
Tests that the type information is used for validation .
def testUploadArtifactsMissingType(self):
    data = {
        'artifact_type_info': {
            'log': 'text/plain'
        },
        'tests': {
          'foo': {
            'actual': 'PASS',
            'expected': 'PASS',
            'artifacts': {
                'screenshot': 'foo.png',
            }
          }
        }
    }
    with self.assertRaises(ValueError):
      upload_test_result_artifacts.upload_artifacts(
          data, '/tmp', True, 'test-bucket')
def testUploadArtifactsMissingType ( self ) : data = { 'artifact_type_info' : { 'log' : 'text/plain' } , 'tests' : { 'foo' : { 'actual' : 'PASS' , 'expected' : 'PASS' , 'artifacts' : { 'screenshot' : 'foo.png' , } } } } with self . assertRaises ( ValueError ) : upload_test_result_artifacts . upload_artifacts ( data , '/tmp' , True , 'test-bucket' )
Tests that the type information is used for validation.
Tests that the type information is used for validation .
"""Tests that the type information is used for validation."""
self