Organize test suite: add README, move loose tests to proper directories
- Add tests/README.md documenting test structure and usage - Move issue_*_test.py files to tests/regression/ (9 files) - Move loose test_*.py files to tests/unit/ (18 files) - tests/ root now contains only pytest infrastructure Addresses #166 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
a4217b49d7
commit
165db91b8d
28 changed files with 174 additions and 0 deletions
|
|
@ -1,35 +0,0 @@
|
|||
#!/usr/bin/env python3
|
||||
"""Test layer documentation"""
|
||||
import sys
|
||||
import mcrfpy
|
||||
|
||||
print("Testing layer documentation (#190)...")
|
||||
|
||||
# Verify layer types exist and have docstrings
|
||||
print("Checking TileLayer...")
|
||||
if not hasattr(mcrfpy, 'TileLayer'):
|
||||
print("FAIL: TileLayer should exist")
|
||||
sys.exit(1)
|
||||
|
||||
print("Checking ColorLayer...")
|
||||
if not hasattr(mcrfpy, 'ColorLayer'):
|
||||
print("FAIL: ColorLayer should exist")
|
||||
sys.exit(1)
|
||||
|
||||
# Check that docstrings exist and contain useful info
|
||||
tile_doc = mcrfpy.TileLayer.__doc__
|
||||
color_doc = mcrfpy.ColorLayer.__doc__
|
||||
|
||||
print(f"TileLayer.__doc__ length: {len(tile_doc) if tile_doc else 0}")
|
||||
print(f"ColorLayer.__doc__ length: {len(color_doc) if color_doc else 0}")
|
||||
|
||||
if tile_doc is None or len(tile_doc) < 50:
|
||||
print(f"FAIL: TileLayer should have substantial docstring")
|
||||
sys.exit(1)
|
||||
|
||||
if color_doc is None or len(color_doc) < 50:
|
||||
print(f"FAIL: ColorLayer should have substantial docstring")
|
||||
sys.exit(1)
|
||||
|
||||
print("PASS: Layer documentation exists!")
|
||||
sys.exit(0)
|
||||
Loading…
Add table
Add a link
Reference in a new issue