Adding vendor api tests
This commit is contained in:
36
tests/integration/api/v1/vendor/README.md
vendored
Normal file
36
tests/integration/api/v1/vendor/README.md
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
# Vendor API Integration Tests
|
||||
|
||||
## Documentation
|
||||
|
||||
For comprehensive vendor API testing documentation, please see:
|
||||
|
||||
**[Vendor API Testing Guide](https://yourusername.github.io/wizamart/testing/vendor-api-testing/)** in MkDocs
|
||||
|
||||
## Quick Start
|
||||
|
||||
```bash
|
||||
# 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 API
|
||||
- `test_vendor_with_vendor_user` - Vendor with VendorUser association
|
||||
|
||||
## See Also
|
||||
|
||||
- [Vendor API Testing Guide](https://yourusername.github.io/wizamart/testing/vendor-api-testing/) - Full documentation
|
||||
- [Test Structure](https://yourusername.github.io/wizamart/testing/test-structure/) - Overall test organization
|
||||
Reference in New Issue
Block a user