markitect-main/tools
tegwick 1d86bf1bbd fix: eliminate all test suite warnings - Issue #129
Comprehensive fix for test suite warnings across multiple issue test files:

### SQLite3 Date Adapter Warnings (Python 3.12)
- Fixed 101 warnings in Issue 113 (activity_tracker.py)
- Fixed 55 warnings in Issue 114 (allocation_engine.py)
- Fixed 148 warnings in Issue 122 (worktime_tracker.py + test file)
- Fixed 18 warnings in Issue 124 (day_wrapup_commands.py + worktime_tracker.py)

### Pytest-asyncio Configuration
- Added asyncio_default_fixture_loop_scope = function to pytest.ini
- Eliminates pytest-asyncio deprecation warning

### Runtime Warnings for Unawaited Coroutines
- Fixed 2 warnings in Issue 59 (gitea plugin async mocking)
- Enhanced AsyncTestCase with better coroutine cleanup
- Improved async mock management in test utilities

### Technical Changes
- Convert Python date/datetime objects to ISO strings before SQLite queries
- Use .isoformat() with defensive hasattr() checks for backward compatibility
- Simplified async test mocking to avoid coroutine creation
- Enhanced cleanup_async_mocks() function for comprehensive cleanup

### Results
- Before: ~324 warnings across test suite
- After: 0 warnings - completely clean test suite
- All 216+ tests pass with zero warning noise

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-06 02:11:28 +02:00
..
chaos_results feat: enhance issue management tooling and clarify performance metrics 2025-10-03 11:09:47 +02:00
agent_tooling_optimizer.py feat: Complete Issue #61 - Agent Tooling Optimizer implementation 2025-10-02 04:50:55 +02:00
chaos_test_runner.py refactor: organize chaos test runner into tools directory 2025-10-03 10:25:33 +02:00
datamodel_optimizer.py fix: eliminate all test suite warnings - Issue #129 2025-10-06 02:11:28 +02:00
fix_paths.py chore: history cleanup 2025-10-03 03:39:43 +02:00
requirements_engineering_toolkit.py feat: Integrate Requirements Engineering Agent and fix Issue #59 test failures 2025-10-02 00:45:06 +02:00
run_architectural_tests.py chore: history cleanup 2025-10-03 03:39:43 +02:00
run_randomized_tests.py chore: history cleanup 2025-10-03 03:39:43 +02:00
schema_summary.py chore: history cleanup 2025-10-03 03:39:43 +02:00
testing_efficiency_optimizer.py feat: Complete Issue #57 - Testing efficiency optimization with TDD8 workflow enhancements 2025-10-02 05:11:25 +02:00
visualize_schema.py chore: history cleanup 2025-10-03 03:39:43 +02:00