From 8a9bab05f14ec87754f764b2f0b6b34e04ee9978 Mon Sep 17 00:00:00 2001 From: Piotr Pauksztelo Date: Tue, 17 Dec 2024 14:32:05 +0100 Subject: [PATCH] Refactor geoip enricher test --- tests/unit/processor/geoip_enricher/test_geoip_enricher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/processor/geoip_enricher/test_geoip_enricher.py b/tests/unit/processor/geoip_enricher/test_geoip_enricher.py index ec55b49f8..9ab1cea26 100644 --- a/tests/unit/processor/geoip_enricher/test_geoip_enricher.py +++ b/tests/unit/processor/geoip_enricher/test_geoip_enricher.py @@ -121,11 +121,11 @@ def test_source_field_is_none_emits_missing_fields_warning(self): expected = {"client": {"ip": None}, "tags": ["_geoip_enricher_missing_field_warning"]} self._load_rule(self.object.rules[0]) self.object.process(document) + assert document == expected assert len(self.object.result.warnings) == 1 assert re.match( r".*missing source_fields: \['client\.ip'].*", str(self.object.result.warnings[0]) ) - assert document == expected def test_nothing_to_enrich(self): document = {"something": {"something": "1.2.3.4"}}