tests/test_profiler.py has test_single_row_df for audit_frequency,
but the other modules (missing.py, stationarity.py, point.py,
contextual.py, and all three leakage/ modules) don't have an
equivalent test confirming they handle a 1-row DataFrame without crashing.
**What's needed:** for each module listed above, add a test that builds a
DataFrame with exactly one row and a valid DatetimeIndex, runs the
relevant audit_* function, and asserts it returns an empty list (or
otherwise doesn't raise an exception. For the leakage/ modules, you'll
also need a target column — one row obviously can't show any real
relationship, so the expected result is no issues detected, not an error.
**Why this is approachable:** This follows the same pattern as the
existing test_single_row_df test in tests/test_profiler.py — copy that
test's shape and adapt it to each new module.
tests/test_profiler.py has test_single_row_df for audit_frequency,
but the other modules (missing.py, stationarity.py, point.py,
contextual.py, and all three leakage/ modules) don't have an
equivalent test confirming they handle a 1-row DataFrame without crashing.
**What's needed:**for each module listed above, add a test that builds aDataFrame with exactly one row and a valid DatetimeIndex, runs the
relevant audit_* function, and asserts it returns an empty list (or
otherwise doesn't raise an exception. For the leakage/ modules, you'll
also need a target column — one row obviously can't show any real
relationship, so the expected result is no issues detected, not an error.
**Why this is approachable:**This follows the same pattern as theexisting test_single_row_df test in tests/test_profiler.py — copy that
test's shape and adapt it to each new module.