You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is Your Feature Request Related to a Problem? Please Describe
We don't currently have any regression tests for the files that are generated by the package template. As an example of where this would have been useful, see #309. I made a mistake that broke a couple of the pyproject.toml fields, that would have been more easily spotted if there was a test that compared pyproject.toml against a reference/expected file.
Describe the Solution You'd Like
Add a test that compares pyproject.toml to an expected/reference file, which fails if the generated file doesn't match. I would suggest starting with just pyprojec.toml to pin down the testing machinery, and then rolling out to other files in a follow up PR.
Describe Alternatives You've Considered
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
As a first step towards
#329, this improves the
testing of the generated package files by generating a list of all
files/folders in the generated package, and comparing that to an
expected list.
This is an improvement over the previous test, where we only checked
that several explicit files/folders exist. The new test will now catch
cases where we add extra files/folders that aren't expected.
---------
Co-authored-by: Sam Cunliffe <[email protected]>
Is Your Feature Request Related to a Problem? Please Describe
We don't currently have any regression tests for the files that are generated by the package template. As an example of where this would have been useful, see #309. I made a mistake that broke a couple of the
pyproject.toml
fields, that would have been more easily spotted if there was a test that comparedpyproject.toml
against a reference/expected file.Describe the Solution You'd Like
Add a test that compares
pyproject.toml
to an expected/reference file, which fails if the generated file doesn't match. I would suggest starting with justpyprojec.toml
to pin down the testing machinery, and then rolling out to other files in a follow up PR.Describe Alternatives You've Considered
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: