summaryrefslogtreecommitdiffstats
path: root/tests/lint_tests/lint_tutil.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-26 10:22:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-26 10:22:27 +0000
commita6d69be7e62fc037a0e9d9872193c79b63f03ce0 (patch)
tree696a4872ad40d7332aee8e4e1341189b834bc391 /tests/lint_tests/lint_tutil.py
parentAdding upstream version 0.1.43. (diff)
downloaddebputy-a6d69be7e62fc037a0e9d9872193c79b63f03ce0.tar.xz
debputy-a6d69be7e62fc037a0e9d9872193c79b63f03ce0.zip
Adding upstream version 0.1.44.upstream/0.1.44
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--tests/lint_tests/lint_tutil.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lint_tests/lint_tutil.py b/tests/lint_tests/lint_tutil.py
index 74e08db..c32ad3c 100644
--- a/tests/lint_tests/lint_tutil.py
+++ b/tests/lint_tests/lint_tutil.py
@@ -9,7 +9,7 @@ from debputy.linting.lint_util import (
LintStateImpl,
LintState,
)
-from debputy.lsp.style_prefs import StylePreferenceTable, EffectivePreference
+from debputy.lsp.maint_prefs import MaintainerPreferenceTable, EffectivePreference
from debputy.packages import DctrlParser
from debputy.plugin.api.feature_set import PluginProvidedFeatureSet
@@ -42,7 +42,7 @@ class LintWrapper:
self.path = path
self._dctrl_parser = dctrl_parser
self.source_root: Optional[VirtualPathBase] = None
- self.lint_style_preference_table = StylePreferenceTable({}, {})
+ self.lint_maint_preference_table = MaintainerPreferenceTable({}, {})
self.effective_preference: Optional[EffectivePreference] = None
def __call__(self, lines: List[str]) -> Optional[List["Diagnostic"]]:
@@ -59,7 +59,7 @@ class LintWrapper:
debian_dir = source_root.get("debian") if source_root is not None else None
state = LintStateImpl(
self._debputy_plugin_feature_set,
- self.lint_style_preference_table,
+ self.lint_maint_preference_table,
source_root,
debian_dir,
self.path,