Игорь Надеин
f7d3cd8c91
feat(calendar): add comprehensive test suite for new Calendar API
- Added make_event fixture for creating test events
- Added CalendarSubscription.color_override null=True migration
- Added computed fields (is_personal, is_global, is_department) to CalendarSerializer
- Fixed CalendarViewSet.create() to use CalendarSerializer for response
- Created test_new_calendar_api.py with 29 comprehensive tests:
* 11 CRUD tests (list, create, retrieve, update, delete)
* 6 subscription tests (subscribe, unsubscribe, my-subscriptions)
* 3 event filtering tests (calendar_id filtering, legacy separation)
* 3 visibility tests (public, private, department)
* 6 permission tests (is_owner, can_user_view, can_user_edit)
Test results:
- ✅ 34 legacy tests passing (backward compatibility maintained)
- ✅ 29 new tests passing (new functionality validated)
- ✅ Total: 63 tests passing
2026-02-11 08:35:24 +03:00
..
2026-02-11 08:35:24 +03:00
2025-09-09 17:55:15 +03:00
2026-02-11 08:35:24 +03:00
2026-01-05 11:20:56 +03:00
2026-01-22 01:33:42 +03:00
2026-01-22 01:33:42 +03:00
2026-01-09 14:56:44 +03:00
2026-02-06 15:33:48 +03:00
2026-01-22 01:33:42 +03:00
2026-01-09 14:48:43 +03:00
2025-11-20 09:00:55 +03:00
2025-07-30 08:15:53 +03:00
2026-01-13 10:19:26 +03:00
2026-01-22 01:33:42 +03:00
2026-01-22 01:33:42 +03:00
2026-01-13 15:02:29 +03:00
2025-09-11 17:56:33 +03:00
2026-02-06 15:42:57 +03:00
2026-02-09 12:19:45 +03:00
2026-02-11 08:35:24 +03:00
2025-07-30 08:15:53 +03:00
2026-01-05 10:47:56 +03:00
2026-01-08 16:14:00 +03:00
2025-11-20 09:00:55 +03:00
2025-09-03 17:17:44 +03:00
2025-07-30 08:15:53 +03:00
2026-01-05 07:41:34 +03:00
2026-01-22 01:33:42 +03:00
2026-01-08 16:14:00 +03:00
2026-01-06 07:48:04 +03:00
2026-01-08 16:55:54 +03:00
2026-01-09 15:07:55 +03:00
2026-01-22 01:33:42 +03:00
2026-01-22 01:33:42 +03:00
2026-01-22 01:33:42 +03:00
2026-01-13 09:18:25 +03:00