summary refs log tree commit diff
path: root/tests/config/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/config/utils.py')
-rw-r--r--tests/config/utils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/config/utils.py b/tests/config/utils.py

index 11140ff979..3cba4ac588 100644 --- a/tests/config/utils.py +++ b/tests/config/utils.py
@@ -51,12 +51,13 @@ class ConfigFileTestCase(unittest.TestCase): ], ) - def generate_config_and_remove_lines_containing(self, needle: str) -> None: + def generate_config_and_remove_lines_containing(self, needles: list[str]) -> None: self.generate_config() with open(self.config_file) as f: contents = f.readlines() - contents = [line for line in contents if needle not in line] + for needle in needles: + contents = [line for line in contents if needle not in line] with open(self.config_file, "w") as f: f.write("".join(contents))