• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

idanmoradarthas / DataScienceUtils / 21429330775 / 7
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 28 Jan 2026 07:40AM UTC
Files 7
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Jan 2026 07:33AM UTC coverage: 100.0% (+0.4%) from 99.565%
21429330775.7

push

github

web-flow
test: Add coverage for empty and all-null cases (#93)

* test: Add coverage for empty and all-null cases

Adds a test to `test_strings.py` for `append_tags_to_frame` when both `X_train` and `X_test` are empty. This covers the early return condition.

Adds a test to `test_preprocess.py` for `compute_mutual_information` when all features are null. This covers the edge case where the function returns a sorted DataFrame of missing features.

* style: Format test files

Run ruff format on tests/test_strings.py to fix formatting issues.

* refactor: Simplify test assertions and address review feedback

Refactors the test `test_compute_mutual_information_all_features_fully_missing` to remove redundant assertions, relying on `pd.testing.assert_frame_equal` for comprehensive verification. This change was made in response to code review feedback.

Also reverts a temporary change to `ds_utils/strings.py` that was intended to address a coverage reporting anomaly. The test for the uncovered lines is correct, and the issue appears to be with the coverage tool's reporting, not the test itself.

* fix(tests): Correct test for empty DataFrame case

Corrects the test `test_append_tags_to_frame_truly_empty` to use a truly empty pandas DataFrame (`pd.DataFrame()`) which has `shape == (0, 0)`.

This ensures that the `X_train.empty` condition in `append_tags_to_frame` evaluates to True, allowing the test to correctly cover the early-return logic on lines 116-117. The previous implementation used a DataFrame with columns but no rows, which results in `.empty == False`.

* style: Format test files

Run ruff format on tests/test_strings.py to fix formatting issues.

* fix(tests): Correct test for truly empty DataFrame

This commit fixes the test `test_append_tags_to_frame_truly_empty` to correctly cover the early return in `append_tags_to_frame`.

The test now uses `pd.DataFrame()` to create a DataFrame with `shape == (0, 0)`, which is the only case where the `.empty` attribu... (continued)

690 of 690 relevant lines covered (100.0%)

1.0 hits per line

Source Files on job ubuntu-latest-python-3.13 - 21429330775.7
  • Tree
  • List 7
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 21429330775
  • 121226c8 on github
  • Prev Job for on master (#21175393653.10)
  • Next Job for on master (#21491784118.12)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc