Testing¶
Running AirDoo Tests¶
cd /path/to/odoo && source venv/bin/activate
python odoo-bin -c config/odoo.conf \
-d odoo_test \
-u airdoo \
--stop-after-init \
--test-enable \
--test-tags airdoo
Tests are located in tests/test_comm_engine.py — 24 tests covering the communication engine.
Running Odoo in Debug Mode (Without Tests)¶
cd /path/to/odoo && source venv/bin/activate
python odoo-server/odoo-bin -c config/odoo.conf -d odoo_test -u airdoo
Manual API Testing¶
# Health check
curl -X GET "http://localhost:8069/api/v1/airdoo/health" \
-H "Authorization: Bearer your_token"
# Calendar
curl -X POST "http://localhost:8069/api/v1/airdoo/calendar" \
-H "Authorization: Bearer your_token" \
-H "Content-Type: application/json" \
-d '{"accommodation_id": 1, "month": 6, "year": 2026}'
# Availability
curl -X POST "http://localhost:8069/api/v1/airdoo/availability" \
-H "Authorization: Bearer your_token" \
-H "Content-Type: application/json" \
-d '{"accommodation_id": 1, "checkin": "2026-06-15", "checkout": "2026-06-20"}'
Testing Gmail Synchronization¶
From the accommodation form: "Sync Airbnb Emails" button
Check results in: - AirDoo → Bookings (newly created bookings) - AirDoo → Diagnostics → Ignored Emails (unprocessed emails) - AirDoo → Diagnostics → Parsing Errors (extraction errors)
Testing Automated Emails¶
- Configure
airdoo.test_recipient_emailin settings - From a template: "Test Template" button
← Back: Architecture | Next: Deployment →