Repository navigation
Testing
python -m pip check
python -m compileall main.py src gate1 scripts tests -q
pytest -q
python scripts/run_gate1.py --output artifacts/gate1_report.jsonFocused main behavior regression:
pytest tests/test_core_behaviour.py -qSynthetic performance checks:
python scripts/benchmark_performance.py --sidebar-rows 6000 --db-symbols 2000 --samples 20Normal tests must not require a developer MySQL instance, KIS credentials, a live broker, or Internet access. Use in-memory SQLite, temporary paths, fakes, and recorded redacted protocol fixtures. A test named for broker behavior is still not proof of a credentialed production contract check unless explicitly run under its separate operational procedure.
GitHub Actions runs compile and pytest on Windows/Python 3.11 and 3.12, then a
deterministic Gate 1 simulation. Branch protection should require both matrix
checks and Gate 1 deterministic simulation.
Do not delete, suppress, or weaken a test to obtain a green result. Trading behavior changes need characterization and boundary tests.
- Home
- Supabase Deployment
- Project Tour
- Quick Start
- System Overview
- Architecture
- Installation and Environment Setup
- Configuration
- User Workflow
- Watchlist and Buy List
- Buy Board and Kanban States
- Scanner and Charts
- Market Data and Database
- Synchronization
- Web/PWA Operator Synchronization
- KIS API Integration
- Current Order Logic
- Order Lifecycle
- Risk and Safety Controls
- Background Jobs and Automation
- Testing
- Operations and Monitoring
- Troubleshooting
- Security
- Glossary