restore accidentally commented tests

This commit is contained in:
John Krauss 2016-05-23 11:10:29 -04:00
parent 974911e01b
commit ebcc9130c7

View File

@ -65,8 +65,6 @@ def default_point(column_id):
@parameterized(MEASURE_COLUMNS) @parameterized(MEASURE_COLUMNS)
def test_measure_points(column_id): def test_measure_points(column_id):
if not column_id.startswith('es.ine'):
return
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,
@ -77,26 +75,26 @@ SELECT * FROM {schema}OBS_GetMeasure({point}, '{column_id}')
assert_equal(1, len(rows)) assert_equal(1, len(rows))
assert_is_not_none(rows[0].values()[0]) assert_is_not_none(rows[0].values()[0])
#@parameterized(CATEGORY_COLUMNS) @parameterized(CATEGORY_COLUMNS)
#def test_category_points(column_id): def test_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,
# schema='cdb_observatory.' if USE_SCHEMA else '', schema='cdb_observatory.' if USE_SCHEMA else '',
# point=default_point(column_id))) point=default_point(column_id)))
# assert_equal(resp.status_code, 200) assert_equal(resp.status_code, 200)
# rows = resp.json()['rows'] rows = resp.json()['rows']
# assert_equal(1, len(rows)) assert_equal(1, len(rows))
# assert_is_not_none(rows[0].values()[0]) assert_is_not_none(rows[0].values()[0])
#
#@parameterized(BOUNDARY_COLUMNS) @parameterized(BOUNDARY_COLUMNS)
#def test_boundary_points(column_id): def test_boundary_points(column_id):
# resp = query(''' resp = query('''
#SELECT * FROM {schema}OBS_GetBoundary({point}, '{column_id}') SELECT * FROM {schema}OBS_GetBoundary({point}, '{column_id}')
# '''.format(column_id=column_id, '''.format(column_id=column_id,
# schema='cdb_observatory.' if USE_SCHEMA else '', schema='cdb_observatory.' if USE_SCHEMA else '',
# point=default_point(column_id))) point=default_point(column_id)))
# assert_equal(resp.status_code, 200) assert_equal(resp.status_code, 200)
# rows = resp.json()['rows'] rows = resp.json()['rows']
# assert_equal(1, len(rows)) assert_equal(1, len(rows))
# assert_is_not_none(rows[0].values()[0]) assert_is_not_none(rows[0].values()[0])