diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 20:17:17 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 20:17:17 +0000 |
commit | 4b6840b31a15c9bae8d00652eee252ab0b7ab427 (patch) | |
tree | 50798f1322b54d95952d435f4e93eb4fb178f975 /tests/lsp_tests/conftest.py | |
parent | Adding upstream version 0.1.25. (diff) | |
download | debputy-4b6840b31a15c9bae8d00652eee252ab0b7ab427.tar.xz debputy-4b6840b31a15c9bae8d00652eee252ab0b7ab427.zip |
Adding upstream version 0.1.26.upstream/0.1.26
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/lsp_tests/conftest.py')
-rw-r--r-- | tests/lsp_tests/conftest.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/lsp_tests/conftest.py b/tests/lsp_tests/conftest.py index 8b42582..2aff4a2 100644 --- a/tests/lsp_tests/conftest.py +++ b/tests/lsp_tests/conftest.py @@ -1,5 +1,7 @@ import pytest + from debputy.plugin.api.feature_set import PluginProvidedFeatureSet +from debputy.util import setup_logging try: from pygls.server import LanguageServer @@ -22,8 +24,16 @@ except ImportError: HAS_PYGLS = False +@pytest.fixture(scope="session") +def enable_logging() -> None: + setup_logging(log_only_to_stderr=True, reconfigure_logging=True) + + @pytest.fixture() -def ls(debputy_plugin_feature_set: PluginProvidedFeatureSet) -> "LanguageServer": +def ls( + enable_logging, + debputy_plugin_feature_set: PluginProvidedFeatureSet, +) -> "LanguageServer": if not HAS_PYGLS: pytest.skip("Missing pygls") ls = LanguageServer("debputy", "v<test>") |