fix urls and circle jobs
This commit is contained in:
Родитель
2c76dd5b93
Коммит
0778ad8699
|
@ -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:
|
||||
|
|
41
api/urls.py
41
api/urls.py
|
@ -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 += [
|
||||
|
|
Загрузка…
Ссылка в новой задаче