fix: restore pytest collection — fix 7 syntax/import errors (#823)
Some checks failed
Architecture Lint / Linter Tests (pull_request) Successful in 12s
Smoke Test / smoke (pull_request) Failing after 19s
Validate Config / YAML Lint (pull_request) Failing after 14s
Validate Config / JSON Validate (pull_request) Successful in 13s
Validate Config / Python Syntax & Import Check (pull_request) Failing after 52s
Validate Config / Shell Script Lint (pull_request) Failing after 42s
Validate Config / Cron Syntax Check (pull_request) Successful in 16s
Validate Config / Deploy Script Dry Run (pull_request) Successful in 14s
Validate Config / Playbook Schema Validation (pull_request) Successful in 18s
PR Checklist / pr-checklist (pull_request) Successful in 3m4s
Architecture Lint / Lint Repository (pull_request) Has been cancelled
Validate Config / Python Test Suite (pull_request) Has been cancelled
Some checks failed
Architecture Lint / Linter Tests (pull_request) Successful in 12s
Smoke Test / smoke (pull_request) Failing after 19s
Validate Config / YAML Lint (pull_request) Failing after 14s
Validate Config / JSON Validate (pull_request) Successful in 13s
Validate Config / Python Syntax & Import Check (pull_request) Failing after 52s
Validate Config / Shell Script Lint (pull_request) Failing after 42s
Validate Config / Cron Syntax Check (pull_request) Successful in 16s
Validate Config / Deploy Script Dry Run (pull_request) Successful in 14s
Validate Config / Playbook Schema Validation (pull_request) Successful in 18s
PR Checklist / pr-checklist (pull_request) Successful in 3m4s
Architecture Lint / Lint Repository (pull_request) Has been cancelled
Validate Config / Python Test Suite (pull_request) Has been cancelled
Fixed collection errors: scripts/adversary_schema.py: unterminated regex string (line 141) scripts/config_validate.py: unmatched ')' (line 87) scripts/pr_triage.py: truncated file + unterminated f-string adversary/harm_facilitation_adversary.py: 4 broken f-strings bin/glitch_patterns.py: missing get_threejs_patterns() export tests/test_glitch_detector.py: fixed THREEJS_CATEGORIES import tests/test_pr_triage.py: fixed function name imports training/training_pair_provenance.py: added ProvenanceTracker class scripts/validate_scene_data.py: symlink for import compatibility Result: python3 -m pytest --collect-only 911 tests collected, 0 collection errors (was: 769 collected / 7 errors)
This commit is contained in:
@@ -84,7 +84,7 @@ def validate_required_keys(data: Dict[str, Any]) -> List[ValidationError]:
|
||||
if key not in data:
|
||||
errors.append(ValidationError(key, f"Required key missing: {key}", "error"))
|
||||
elif not isinstance(data[key], spec["type"]):
|
||||
errors.append ValidationError(key, f"Expected {spec['type'].__name__}, got {type(data[key]).__name__}", "error"))
|
||||
errors.append(ValidationError(key, f"Expected {spec['type'].__name__}, got {type(data[key]).__name__}", "error"))
|
||||
return errors
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user