Skip to content

Wrote unit tests for alert's label query parser

This adds a unit test which tests gracedb.alerts.utils.parse_label_query with many procedurally generated queries. For time considerations this is limited to queries containing 1 to 4 labels, though it can be extended arbitrarily high. All combinations of operators are tested, and mock labels are generated to avoid dependence on the labels present in the default DB.

Merge request reports