7 Commits

Author SHA1 Message Date
lizerk
dac0234007 Enforce repository-wide code quality 2026-09-07 19:43:48 +03:00
lizerk
3c5a8c87e2 Update application functionality and supporting components 2026-08-17 13:54:35 +03:00
lizerk
cca52d70d6 Refactor project structure and remove obsolete code 2026-08-15 11:16:50 +03:00
lizerk
7dcf84dcd1 feat(auth): add session management and settings integration 2026-04-11 23:31:14 +03:00
lizerk
f88d90230b refactor: clean architecture, align tests to current API contracts, all tests green [deploy-ready] 2026-03-30 04:27:18 +03:00
lizerk
6e4eabeb4e test: Configure Celery for integration tests and setup Redis
- Add Celery synchronous execution settings for tests
  * CELERY_TASK_ALWAYS_EAGER = True (no separate worker needed)
  * CELERY_TASK_EAGER_PROPAGATES = True
  * Use memory broker/backend for tests

- Add performance marker to pytest.ini
  * Allows marking tests with @pytest.mark.performance

- Setup Redis server via systemd
  * Enabled redis-server.service for autostart
  * Redis runs on 127.0.0.1:6379

- Update .gitignore to exclude dump.rdb (Redis dump file)

Integration tests status:
- 26/47 tests passing (55%)
- 21 tests failing due to missing NotificationType fixtures
- Tests no longer hang (Celery executes synchronously)

Note: Integration tests require NotificationType fixtures to be created
before document operations trigger notification signals.
2026-03-05 11:49:55 +03:00
d2a3a97165 fix(procurement): resolve test failures
- Fix led_departments -> headed_departments (permissions.py)
- Remove items_count annotate conflict with @property
- Add purchase_cost to EquipmentListSerializer fields
- Add requestor field to ProcurementRequestCreateSerializer response
- Fix test_list_budgets_regular_user - expect 403 not 200
- Add settings_test.py with InMemoryChannelLayer for tests
- Update pytest.ini to use settings_test

Result: 38/41 tests PASSED (was 26/41)
2025-12-09 09:41:26 +03:00