better feedback in autotest

This commit is contained in:
John Krauss 2016-07-13 10:59:25 -04:00
parent 2107796f07
commit e4052ed565

View File

@ -110,6 +110,7 @@ def default_area(column_id):
@parameterized(US_CENSUS_MEASURE_COLUMNS) @parameterized(US_CENSUS_MEASURE_COLUMNS)
def test_get_us_census_measure_points(name): def test_get_us_census_measure_points(name):
print 'test_get_us_census_measure_points, ', name
resp = query(''' resp = query('''
SELECT * FROM {schema}OBS_GetUSCensusMeasure({point}, '{name}') SELECT * FROM {schema}OBS_GetUSCensusMeasure({point}, '{name}')
'''.format(name=name.replace("'", "''"), '''.format(name=name.replace("'", "''"),
@ -123,6 +124,7 @@ SELECT * FROM {schema}OBS_GetUSCensusMeasure({point}, '{name}')
@parameterized(MEASURE_COLUMNS) @parameterized(MEASURE_COLUMNS)
def test_get_measure_areas(column_id, point_only): def test_get_measure_areas(column_id, point_only):
print 'test_get_measure_areas, ', column_id, point_only
if point_only: if point_only:
return return
resp = query(''' resp = query('''
@ -138,6 +140,7 @@ SELECT * FROM {schema}OBS_GetMeasure({area}, '{column_id}')
@parameterized(MEASURE_COLUMNS) @parameterized(MEASURE_COLUMNS)
def test_get_measure_points(column_id, point_only): def test_get_measure_points(column_id, point_only):
print 'test_get_measure_points, ', column_id, point_only
resp = query(''' resp = query('''
SELECT * FROM {schema}OBS_GetMeasure({point}, '{column_id}') SELECT * FROM {schema}OBS_GetMeasure({point}, '{column_id}')
'''.format(column_id=column_id, '''.format(column_id=column_id,
@ -162,6 +165,7 @@ SELECT * FROM {schema}OBS_GetMeasure({point}, '{column_id}')
@parameterized(CATEGORY_COLUMNS) @parameterized(CATEGORY_COLUMNS)
def test_get_category_points(column_id): def test_get_category_points(column_id):
print 'test_get_category_points, ', column_id
resp = query(''' resp = query('''
SELECT * FROM {schema}OBS_GetCategory({point}, '{column_id}') SELECT * FROM {schema}OBS_GetCategory({point}, '{column_id}')
'''.format(column_id=column_id, '''.format(column_id=column_id,