pytest-mypy-plugins
pytest-mypy-plugins copied to clipboard
Introduce a test case schema
Here's what I have in mind.
What about creating a @dataclass or NamedTuple or ish that will describe using a model what is a test case?
This should make it easier to maintain a code IMHO.
A suggestion, if you are interested :)
Can you please share an example?
An example could be something like:
class TestCase:
name: str
main: str
out: Optional[str]
...
we could load into such a model and perhaps develop, using Github Actions, a solution to introspect members and generate such a table each time model changes :)
It is more or less really fancy idea :)