typeddjango / pytest-mypy-plugins

pytest plugin for testing mypy types, stubs, and plugins
https://pypi.org/project/pytest-mypy-plugins/
MIT License
100 stars 26 forks source link

Extract some code from yaml test item #149

Closed delfick closed 4 months ago

delfick commented 4 months ago

Hello,

I have some time to make https://github.com/typeddjango/pytest-mypy-plugins/issues/144 happen (and the need for this functionality).

I haven't got far into working out exactly how I'll make it happen, but I do believe it'll be easier if YamlTestItem is broken up a bit.

This PR is a refactor do do that. It should be a pure refactor and I believe the only real change is I do move execute_extension_hook to before the execution_path is created, as it currently does not know about that folder.

I want to make sure I'm not gonna be treading on any toes before going too far down this path!

This PR is best seen one commit at a time.