Beispiel #1
0
 def _get_metrics_queries_from_table_stub_path(self, table_stub_path):
     sections = sections_from_markdown(table_stub_path)
     ugc_sections = parse_ugc(sections["ugc"])
     return ugc_sections[DEFINED_METRICS_SECTION]
Beispiel #2
0
def test_parse_ugc():
    sections = parse_ugc(TEST_BLOB)
    assert sections['defined_metrics'][0] == "\n" + METRIC_STATEMENT + "\n"