UI Components: - Add vendor invoices page route in vendor_pages.py - Create invoices.html template with stats cards, invoice table, settings tab, and create invoice modal - Add invoices.js Alpine.js component for CRUD operations, PDF download, and settings management - Add Invoices link to vendor sidebar in Sales section Unit Tests (35 tests): - VAT calculation (EU rates, regimes, labels) - Invoice settings CRUD and number generation - Invoice retrieval, listing, and pagination - Status management and validation - Statistics calculation Integration Tests (34 tests): - Settings API endpoints (GET/POST/PUT) - Stats API endpoint - Invoice list with filtering and pagination - Invoice detail retrieval - Invoice creation from orders - Status update transitions - PDF generation endpoints - Authentication/authorization checks 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Vendor API Integration Tests
Documentation
For comprehensive vendor API testing documentation, please see:
Vendor API Testing Guide in MkDocs
Quick Start
# Run all vendor tests
pytest tests/integration/api/v1/vendor/ -v
# Run with coverage
pytest tests/integration/api/v1/vendor/ \
--cov=app/api/v1/vendor \
--cov-report=html
Test Files
test_authentication.py- Authentication tests (30+ tests)test_dashboard.py- Dashboard stats tests (12 tests)
Fixtures
Key fixtures for vendor testing:
vendor_user_headers- Authentication headers for vendor APItest_vendor_with_vendor_user- Vendor with VendorUser association
See Also
- Vendor API Testing Guide - Full documentation
- Test Structure - Overall test organization