This commit is contained in:
groovecoder 2023-02-24 10:30:50 -06:00
Родитель 2c76dd5b93
Коммит 0778ad8699
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: FB5123597126E96C
2 изменённых файлов: 24 добавлений и 21 удалений

Просмотреть файл

@ -524,7 +524,7 @@ workflows:
- python_job:
name: python test phones disabled
command: PHONES_ENABLED=0 pytest --junit-xml=job-results/pytest-phones-disabled.xml .
command: PHONES_ENABLED=0 IQ_ENABLED=0 pytest --junit-xml=job-results/pytest-phones-disabled.xml .
has_results: true
filters:
tags:
@ -545,7 +545,7 @@ workflows:
- python_job:
name: python test iq enabled
command: IQ_ENABLED=1 pytest --junit-xml=job-results/pytest-iq-enabled.xml .
command: PHONES_ENABLED=1 IQ_ENABLED=1 pytest --junit-xml=job-results/pytest-iq-enabled.xml .
has_results: true
filters:
tags:

Просмотреть файл

@ -68,18 +68,18 @@ urlpatterns = [
),
]
from .views.phones import (
RealPhoneViewSet,
RelayNumberViewSet,
InboundContactViewSet,
inbound_call,
inbound_sms,
inbound_sms_iq,
vCard,
sms_status,
voice_status,
resend_welcome_sms,
)
if settings.PHONES_ENABLED:
from .views.phones import (
RealPhoneViewSet,
RelayNumberViewSet,
InboundContactViewSet,
inbound_call,
inbound_sms,
vCard,
sms_status,
voice_status,
resend_welcome_sms,
)
if settings.PHONES_ENABLED:
api_router.register(r"realphone", RealPhoneViewSet, "real_phone")
@ -132,13 +132,16 @@ if settings.PHONES_ENABLED:
]
urlpatterns += [
path(
"v1/inbound_sms_iq/",
enable_if_setting("IQ_ENABLED")(inbound_sms_iq),
name="inbound_sms",
),
]
if settings.PHONES_ENABLED and settings.IQ_ENABLED:
from .views.phones import inbound_sms_iq
urlpatterns += [
path(
"v1/inbound_sms_iq/",
enable_if_setting("IQ_ENABLED")(inbound_sms_iq),
name="inbound_sms",
),
]
urlpatterns += [