From 45c42073dae3c1349250bbd4fba5601a307cb1f4 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Mon, 29 Jan 2024 15:51:35 +0100 Subject: [PATCH] adjust types for Pytest 8.x; retaining compatability with Pytest 7.x --- cwltest/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cwltest/plugin.py b/cwltest/plugin.py index 40da5f5..1a5e5b1 100644 --- a/cwltest/plugin.py +++ b/cwltest/plugin.py @@ -33,6 +33,7 @@ from _pytest.config import PytestPluginManager from _pytest.config.argparsing import Parser as PytestParser from _pytest.nodes import Node + from pluggy import HookCaller class TestRunner(Protocol): @@ -58,7 +59,7 @@ def _get_comma_separated_option(config: "Config", name: str) -> List[str]: def _run_test_hook_or_plain( test: Dict[str, str], config: utils.CWLTestConfig, - hook: TestRunner, + hook: "HookCaller", ) -> utils.TestResult: """Run tests using a provided pytest_cwl_execute_test hook or the --cwl-runner.""" processfile, jobfile = utils.prepare_test_paths(test, config.basedir)