We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d8dd1b commit 9097f90Copy full SHA for 9097f90
tests/functional/test_metrics.py
@@ -319,11 +319,9 @@ def test_schema_no_metrics(service, namespace):
319
my_metrics.serialize_metric_set()
320
321
322
-def test_exceed_number_of_dimensions(metric, namespace, monkeypatch):
+def test_exceed_number_of_dimensions(metric, namespace):
323
# GIVEN we we have more dimensions than CloudWatch supports
324
- # and that service dimension is injected like a user-defined dimension (N+1)
325
- monkeypatch.setenv("POWERTOOLS_SERVICE_NAME", "test_service")
326
- dimensions = [{"name": f"test_{i}", "value": "test"} for i in range(9)]
+ dimensions = [{"name": f"test_{i}", "value": "test"} for i in range(11)]
327
328
# WHEN we attempt to serialize them into a valid EMF object
329
# THEN it should fail validation and raise SchemaValidationError
0 commit comments