Skip to content
Next Next commit
Fix tests fixtures which were using measures for metric numerator/den…
…ominators

In our previous upgrade to DSI dev7, numerators and denominators for
metrics switched from being `MetricInputMeasure`s to `MetricInput`s.
I.e. metric numerators and denominators should references other metrics,
not semantic model measures. However, at that time, we weren't actually
doing anything with numerators and denominators in core, so no issue
got raised. The changes we are about to make though are going to surface
these issues..
  • Loading branch information
QMalcolm committed Jun 28, 2023
commit a88cd29c70b4915ae26fb548648727a68d03caee
6 changes: 2 additions & 4 deletions tests/functional/metrics/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,8 @@
description: "The average tenure per person"
type: ratio
type_params:
numerator:
name: years_tenure
denominator:
name: people
numerator: collective_tenure
denominator: number_of_people

- name: average_tenure_plus_one
label: "Average tenure, plus 1"
Expand Down