forked from SWISDATA/processintel
tests: the DataFrame transformation tests are never run #56
Labels
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ffrauenberger/ProcessIntel#56
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: medium (the file name does not match the discovery pattern, so CI skips it)
Where
tests/transformations/dataframe_transformation_tests.pypackage.nix:68-71README.md:104Problem
The test command used everywhere (README,
package.nixcheckPhase) is:The file is called
dataframe_transformation_tests.py(_tests.py, plural), so it does not match the pattern and its six tests never run, neither in CI nor in the Nix build. These are the only tests forDataframeTransformations, the module containing the most severe bug found (#1).Steps to reproduce
python -m unittest discover -s tests -p "*_test.py" -vdataframe_transformationExpected behavior
The six tests in
tests/transformations/dataframe_transformation_tests.pyare executed.Actual behavior
They are not discovered and not executed.
Related: #1, #62.
Fix
Rename the file to
dataframe_transformation_test.py(or widen the pattern), and add a check that fails if atest_*method exists in a file that is not discovered.from
issues/TEST-001-dataframe-transformation-tests-never-run.md(code analysis of commit6bcc646, 2026-10-03)