Skip to content

Commit

Permalink
adjust types for Pytest 8.x; retaining compatability with Pytest 7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Jan 29, 2024
1 parent 2a0f9ba commit 45c4207
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cwltest/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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)
Expand Down

0 comments on commit 45c4207

Please sign in to comment.