- 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)
13 lines
311 B
Python
13 lines
311 B
Python
"""
|
|
Настройки для тестов - используют InMemoryChannelLayer вместо Redis.
|
|
"""
|
|
|
|
from .settings import * # noqa
|
|
|
|
# Используем InMemoryChannelLayer для тестов
|
|
CHANNEL_LAYERS = {
|
|
"default": {
|
|
"BACKEND": "channels.layers.InMemoryChannelLayer"
|
|
}
|
|
}
|