Spaces:
Sleeping
Sleeping
Download backend/tests/test_data_source_audit.py from ascentialabs/PDC: direct link, hf CLI and curl.
- Browser
- Download file 554 Bytes
-
https://huggingface.co/spaces/ascentialabs/PDC/resolve/main/backend/tests/test_data_source_audit.py
- Command line
-
hf download hf://spaces/ascentialabs/PDC/backend/tests/test_data_source_audit.py
-
curl -L -o test_data_source_audit.py https://huggingface.co/spaces/ascentialabs/PDC/resolve/main/backend/tests/test_data_source_audit.py
554 Bytes
| from app.services.data_service import DataService | |
| def test_data_source_audit_has_expected_counts() -> None: | |
| ds = DataService() | |
| ds.load_data() | |
| audit = ds.get_data_source_audit() | |
| assert "row_counts" in audit | |
| rc = audit["row_counts"] | |
| assert rc["raw_working"] > 9000 | |
| assert rc["raw_piece_dyed"] > 1500 | |
| assert rc["used_total"] > 10000 | |
| assert "column_coverage" in audit | |
| cov = audit["column_coverage"] | |
| assert "Greige EPI" in cov | |
| assert "FINISH EPI" in cov | |
| assert cov["Greige EPI"]["non_null_rows"] > 9000 | |