You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**`@unittest.expectedFailure` handling (applies to the move tasks below):** any class whose row shows an xfail count contains that many `@unittest.expectedFailure` decorators. In the moved file, (a) add `import pytest` to the header, and (b) replace each `@unittest.expectedFailure` line with `@pytest.mark.xfail`. Leave the decorated method body unchanged. These convert `unittest`'s expected-failure marker (which only works on `TestCase`) into pytest's equivalent.
49
49
@@ -386,7 +386,7 @@ class ConstantsCustomizationTests(HumanNameTestBase):
386
386
-[ ]**Step 3: Run**
387
387
388
388
Run: `uv run pytest tests/test_constants.py -q`
389
-
Expected: `24 passed` (12 × 2). Note: drop `CONSTANTS` from the top-level import — `test_empty_attribute_default` re-imports it locally, so a top-level import is redundant (ruff F811). Also add `-> None` to `test_custom_regex_constant`, the one method in the file lacking a return annotation (ruff ANN201).
389
+
Expected: `22 passed` (11 × 2). Note: drop `CONSTANTS` from the top-level import — `test_empty_attribute_default` re-imports it locally, so a top-level import is redundant (ruff F811).
390
390
391
391
-[ ]**Step 4: Lint and commit**
392
392
@@ -738,7 +738,7 @@ Run: `git rm tests.py`
738
738
-[ ]**Step 4: Run the entire suite**
739
739
740
740
Run: `uv run pytest -q`
741
-
Expected: `670 passed, 20 xfailed` (335 passing methods × 2, plus 10 `xfail` methods × 2 = 690 collected). Zero failures, zero errors. With dill present (dev group), no skips.
741
+
Expected: `668 passed, 20 xfailed` (334 passing methods × 2, plus 10 `xfail` methods × 2 = 688 collected). Zero failures, zero errors. With dill present (dev group), no skips.
742
742
743
743
-[ ]**Step 5: Run ruff and mypy across the repo**
744
744
@@ -861,7 +861,7 @@ git commit -m "docs: update test instructions and CI for pytest"
861
861
862
862
## Final verification (after all tasks)
863
863
864
-
-[ ]`uv run pytest -q` → `670 passed, 20 xfailed` (690 collected, zero failures)
864
+
-[ ]`uv run pytest -q` → `668 passed, 20 xfailed` (688 collected, zero failures)
865
865
-[ ]`uv run ruff check` → clean
866
866
-[ ]`uv run mypy` → clean
867
867
-[ ]`uv run python -m nameparser "Dr. Juan Q. Xavier de la Vega III"` → prints parsed repr
0 commit comments