1 parent 2e87290 commit d041c3eCopy full SHA for d041c3e
1 file changed
crio/tests/test_unit.py
@@ -0,0 +1,22 @@
1
+# (C) Datadog, Inc. 2026-present
2
+# All rights reserved
3
+# Licensed under a 3-clause BSD style license (see LICENSE)
4
+import pytest
5
+
6
+from datadog_checks.crio import CrioCheck
7
8
+pytestmark = pytest.mark.unit
9
10
+CHECK_NAME = 'crio'
11
12
13
+def test_default_metric_limit_is_zero():
14
+ # Kills the core/NumberReplacer mutant at crio.py:12 (DEFAULT_METRIC_LIMIT 0 -> -1).
15
+ assert CrioCheck.DEFAULT_METRIC_LIMIT == 0
16
17
18
+def test_send_histograms_buckets_defaults_to_true(instance):
19
+ # Kills the core/ReplaceTrueWithFalse mutant at crio.py:30 (send_histograms_buckets True -> False).
20
+ check = CrioCheck(CHECK_NAME, {}, [instance])
21
+ scraper_config = check.get_scraper_config(instance)
22
+ assert scraper_config['send_histograms_buckets'] is True
0 commit comments