Skip to content

Commit

Permalink
added force_update to one test to get full coverage of new code
Browse files Browse the repository at this point in the history
  • Loading branch information
eacharles committed Nov 21, 2023
1 parent 949c12e commit 44d5183
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/qp/test_metric_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ def test_create_metrics(self):
for metric_name in all_metric_names:
a_metric = qp.metrics.create_metric(metric_name)
assert a_metric.metric_name == metric_name

a_metric = qp.metrics.create_metric("outlier", force_update=True)
assert a_metric.metric_name == 'outlier'

def test_bad_metric_name(self):
""" Catch error on making a bad metric """
with self.assertRaises(KeyError):
Expand Down

0 comments on commit 44d5183

Please sign in to comment.