Skip to content

Commit

Permalink
test(metrics): Update empty units in test assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-auer committed Apr 7, 2022
1 parent d52e004 commit 229104a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/integration/test_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def test_metrics_with_processing(mini_sentry, relay_with_processing, metrics_con
"org_id": 1,
"project_id": project_id,
"name": "foo",
"unit": "",
"unit": "none",
"value": 42.0,
"type": "c",
"timestamp": timestamp,
Expand Down Expand Up @@ -150,7 +150,7 @@ def test_metrics_full(mini_sentry, relay, relay_with_processing, metrics_consume
"org_id": 1,
"project_id": project_id,
"name": "foo",
"unit": "",
"unit": "none",
"value": 15.0,
"type": "c",
}
Expand Down Expand Up @@ -366,7 +366,7 @@ def test_session_metrics_processing(
"timestamp": expected_timestamp,
"name": "c:sessions/session@none",
"type": "c",
"unit": "",
"unit": "none",
"value": 1.0,
"tags": {
"environment": "production",
Expand All @@ -381,7 +381,7 @@ def test_session_metrics_processing(
"timestamp": expected_timestamp,
"name": "s:sessions/user@none",
"type": "s",
"unit": "",
"unit": "none",
"value": [1617781333],
"tags": {
"environment": "production",
Expand Down Expand Up @@ -516,31 +516,31 @@ def test_transaction_metrics(
**common,
"name": "d:transactions/measurements.foo@none",
"type": "d",
"unit": "",
"unit": "none",
"value": [1.2, 2.2],
}

assert metrics["d:transactions/measurements.bar@none"] == {
**common,
"name": "d:transactions/measurements.bar@none",
"type": "d",
"unit": "",
"unit": "none",
"value": [1.3],
}

assert metrics["d:transactions/breakdowns.ops.react.mount@none"] == {
**common,
"name": "d:transactions/breakdowns.ops.react.mount@none",
"type": "d",
"unit": "",
"unit": "none",
"value": [9.910106, 9.910106],
}

assert metrics["d:transactions/breakdowns.total.time@none"] == {
**common,
"name": "d:transactions/breakdowns.total.time@none",
"type": "d",
"unit": "",
"unit": "none",
"value": [9.910106, 9.910106],
}

Expand Down

0 comments on commit 229104a

Please sign in to comment.