-
Notifications
You must be signed in to change notification settings - Fork 4
refactor: rename reference checker names #244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -19,8 +19,8 @@ | |||||
| from t4_devkit.sanity.reference.ref010 import REF010 | ||||||
| from t4_devkit.sanity.reference.ref011 import REF011 | ||||||
| from t4_devkit.sanity.reference.ref012 import REF012 | ||||||
| from t4_devkit.sanity.reference.ref013 import REF013 | ||||||
| from t4_devkit.sanity.reference.ref014 import REF014 | ||||||
| from t4_devkit.sanity.reference.ref201 import REF201 | ||||||
| from t4_devkit.sanity.reference.ref202 import REF202 | ||||||
|
|
||||||
| # Sample dataset root (non-versioned) | ||||||
| SAMPLE_ROOT = Path(__file__).parent.parent.joinpath("sample", "t4dataset") | ||||||
|
|
@@ -86,8 +86,8 @@ def _ensure_is_valid(records: list[dict]) -> list[dict]: | |||||
| REF009, | ||||||
| REF010, | ||||||
| REF011, | ||||||
| REF013, | ||||||
| REF014, | ||||||
| REF201, | ||||||
| REF202, | ||||||
| ], | ||||||
| ) | ||||||
| def test_reference_checkers_pass(checker_cls: type) -> None: | ||||||
|
|
@@ -198,8 +198,8 @@ def test_ref005_fail_invalid_sample_reference(tmp_path: Path) -> None: | |||||
| assert any("nonexistent_sample_token" in r for r in report.reasons) | ||||||
|
|
||||||
|
|
||||||
| def test_ref013_fail_missing_filename(tmp_path: Path) -> None: | ||||||
| """Mutate sample_data.json to point to a missing file for REF013.""" | ||||||
| def test_ref201_fail_missing_filename(tmp_path: Path) -> None: | ||||||
| """Mutate sample_data.json to point to a missing file for REF201.""" | ||||||
| root = _copy_dataset(tmp_path / "dataset_ref013_fail") | ||||||
|
||||||
| root = _copy_dataset(tmp_path / "dataset_ref013_fail") | |
| root = _copy_dataset(tmp_path / "dataset_ref201_fail") |
Copilot
AI
Dec 3, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The directory name 'dataset_ref014_fail' should be updated to 'dataset_ref202_fail' to match the renamed checker REF202.
| root = _copy_dataset(tmp_path / "dataset_ref014_fail") | |
| root = _copy_dataset(tmp_path / "dataset_ref202_fail") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
namefield 'sample-data-filename-presence' is inconsistent with the description and actual functionality. This checker validates 'info_filename', not 'filename'. The name should be 'sample-data-info-filename-presence' to match the documentation and checker ID REF202.