mooncak397 Claude Sonnet 5.5 commited on
Commit
800aade
·
1 Parent(s): 5f42268

Test: spell the nickname check so the test file itself is clean

Browse files
Files changed (1) hide show
  1. tests/test_m0.py +1 -2
tests/test_m0.py CHANGED
@@ -52,8 +52,7 @@ def test_rules_has_fixed_sentences():
52
  def test_no_nickname_anywhere():
53
  for f in ROOT.rglob("*"):
54
  if f.is_file() and not {".git", ".venv", ".pytest_cache", "__pycache__"} & set(f.parts):
55
- if f.name != "test_m0.py": # this file spells the word in a pattern below
56
- assert "chr" + "izz" not in f.read_text(errors="ignore").lower(), f
57
 
58
 
59
  def test_golden_set():
 
52
  def test_no_nickname_anywhere():
53
  for f in ROOT.rglob("*"):
54
  if f.is_file() and not {".git", ".venv", ".pytest_cache", "__pycache__"} & set(f.parts):
55
+ assert "chr" + "izz" not in f.read_text(errors="ignore").lower(), f # split so this file passes too
 
56
 
57
 
58
  def test_golden_set():