pschanely / CrossHair

An analysis tool for Python that blurs the line between testing and type systems.
Other
1.03k stars 49 forks source link

Produce the correct import statements for pytest output on cover command #220

Closed pschanely closed 1 year ago

pschanely commented 1 year ago

Right now, CrossHair only produces import statements for (1) the function getting tested, and (2) pytest itself, if needed.

It doesn't produce imports for any of the user-defined classes, enums, etc needed for constructing inputs or values to compare the output to. Sadly, fixing this issue isn't a trivial lift.

pschanely commented 1 year ago

Fixed in v0.0.45