Skip to content

Commit

Permalink
Extract some code from yaml test item (#149)
Browse files Browse the repository at this point in the history
* Make this function return an int

Prior to this a SystemExit exception could return the code as a string
or an integer, now we convert it to a sensible integer to return

* Move where the extension hook is executed

It currently doesn't depend on the execution path existing, and we can
make sure this runs before we create that path and run anything

* Extract code to check mypy output

This is so we can abstract away what is involved in checking the mypy
output. This will also help when we extract running mypy so we don't
have to pass around the information that is only needed for this
check

* Extract out code for running mypy

This will make it easier for us to run mypy multiple times later on

* Extract the running of the test item

This object glues together the creation of test files, the running of
mypy, and the checking of the result

* Remove unused imports
  • Loading branch information
delfick committed May 2, 2024
1 parent d000b4b commit 3995a96
Show file tree
Hide file tree
Showing 2 changed files with 224 additions and 154 deletions.

0 comments on commit 3995a96

Please sign in to comment.