tests: the DataFrame transformation tests are never run #56

Open
opened 2026-10-06 13:54:07 +00:00 by ffrauenberger · 0 comments
Owner

Severity: medium (the file name does not match the discovery pattern, so CI skips it)

Where

  • tests/transformations/dataframe_transformation_tests.py
  • package.nix:68-71
  • README.md:104

Problem

The test command used everywhere (README, package.nix checkPhase) is:

python -m unittest discover -s tests -p "*_test.py"

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 for DataframeTransformations, the module containing the most severe bug found (#1).

Steps to reproduce

  1. Run python -m unittest discover -s tests -p "*_test.py" -v
  2. Search the output for dataframe_transformation

Expected behavior

The six tests in tests/transformations/dataframe_transformation_tests.py are 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 a test_* method exists in a file that is not discovered.


from issues/TEST-001-dataframe-transformation-tests-never-run.md (code analysis of commit 6bcc646, 2026-10-03)

**Severity:** medium (the file name does not match the discovery pattern, so CI skips it) ## Where - `tests/transformations/dataframe_transformation_tests.py` - `package.nix:68-71` - `README.md:104` ## Problem The test command used everywhere (README, `package.nix` checkPhase) is: ``` python -m unittest discover -s tests -p "*_test.py" ``` 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 for `DataframeTransformations`, the module containing the most severe bug found (#1). ### Steps to reproduce 1. Run `python -m unittest discover -s tests -p "*_test.py" -v` 2. Search the output for `dataframe_transformation` ### Expected behavior The six tests in `tests/transformations/dataframe_transformation_tests.py` are 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 a `test_*` method exists in a file that is not discovered. --- from `issues/TEST-001-dataframe-transformation-tests-never-run.md` (code analysis of commit 6bcc646, 2026-10-03)
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ffrauenberger/ProcessIntel#56
No description provided.