From a982944c0488ad9ceffcd1b6a875f1383f4b0a8d Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Sat, 4 Nov 2023 10:51:39 +0100 Subject: [PATCH] Enact the checker config deprecation --- tests/base_tester.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/base_tester.py b/tests/base_tester.py index 12d2e63..38853c8 100644 --- a/tests/base_tester.py +++ b/tests/base_tester.py @@ -70,13 +70,11 @@ def setup_method(self): self.impacted_checkers = [] for key, value in self.CONFIG.items(): - setattr(self.checker.config, key, value) + setattr(self.linter.config, key, value) self.checker.open() for checker_class in self.IMPACTED_CHECKER_CLASSES: checker = checker_class(self.linter) - for key, value in self.CONFIG.items(): - setattr(checker.config, key, value) checker.open() self.impacted_checkers.append(checker)