Skip to content

Commit

Permalink
fix pseudonymizer dealing with frozen config
Browse files Browse the repository at this point in the history
  • Loading branch information
ekneg54 committed Aug 31, 2024
1 parent afc0660 commit 4af2ad4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/unit/processor/pseudonymizer/test_pseudonymizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import re
from copy import deepcopy
from pathlib import Path
from unittest import mock

import pytest

Expand Down Expand Up @@ -776,7 +775,9 @@ def test_tld_extractor_uses_file(self):
)

def _load_specific_rule(self, rule):
self.object._config.regex_mapping = self.regex_mapping
config = deepcopy(self.CONFIG)
config["regex_mapping"] = self.regex_mapping
self.object = Factory.create({"pseudonymizer": config})
super()._load_specific_rule(rule)
self.object.setup()

Expand Down

0 comments on commit 4af2ad4

Please sign in to comment.