IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 15, 2010, 2:51:13 PM (16 years ago)
Author:
Serge CHASTEL
Message:

Test report now in xml

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/sc_branches/psps_testing/utilities/util.py

    r29235 r29438  
    125125                if complain:
    126126                    TestReport.ko(requirement,
    127                                   'Classes of FITS value (%s/%s) and PSI value (%s/%s) are different for key \'%s\''
    128                                   % (fits_value.__class__.__name__,
    129                                      fits_value,
    130                                      value.__class__.__name__,
    131                                      value,
    132                                      str(key)))
     127                                    'Classes of FITS value (%s/%s) and PSI value (%s/%s) are different for key \'%s\''
     128                                    % (fits_value.__class__.__name__,
     129                                       fits_value,
     130                                       value.__class__.__name__,
     131                                       value,
     132                                       str(key)))
    133133                failures_count += 1
    134134                complain = complain and __still_complain(max_failures, failures_count)
     
    142142                if complain:
    143143                    TestReport.ko(requirement,
    144                                   'Different values for key %s: PSI = [%s] (%s) / FITS = [%s] (%s) / FITS index = %d' %
    145                                   (key,
    146                                    psi_value,
    147                                    psi_value.__class__.__name__,
    148                                    fits_data.field(key)[fits_index],
    149                                    fits_data.field(key)[fits_index].__class__.__name__,
    150                                    fits_index))
     144                                    'Different values for key %s: PSI = [%s] (%s) / FITS = [%s] (%s) / FITS index = %d' %
     145                                    (key,
     146                                     psi_value,
     147                                     psi_value.__class__.__name__,
     148                                     fits_data.field(key)[fits_index],
     149                                     fits_data.field(key)[fits_index].__class__.__name__,
     150                                     fits_index))
    151151                failures_count += 1
    152152                complain = complain and __still_complain(max_failures, failures_count)
     
    158158            # Write the summary of all errors
    159159            TestReport.ko(requirement,
    160                           'Total of %d comparison errors for match (comparison over %d rows of %d columns)'
    161                           % (failures_count,
    162                              len(psi_answer['items']),
    163                              len(items.items())))
     160                            'Total of %d comparison errors for match (comparison over %d rows of %d columns)'
     161                            % (failures_count,
     162                               len(psi_answer['items']),
     163                               len(items.items())))
    164164    return product
    165165
Note: See TracChangeset for help on using the changeset viewer.