mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-23 07:46:06 -04:00
Pull admin base url from test config in tests
This commit is contained in:
2
Makefile
2
Makefile
@@ -69,7 +69,7 @@ generate-version-file: ## Generates the app version file
|
|||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: ## Run tests
|
test: ## Run tests
|
||||||
# flake8 .
|
# flake8 .
|
||||||
# isort --check-only ./app ./tests
|
isort --check-only ./app ./tests
|
||||||
pytest -n4 --maxfail=10
|
pytest -n4 --maxfail=10
|
||||||
|
|
||||||
.PHONY: freeze-requirements
|
.PHONY: freeze-requirements
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ from app.celery.scheduled_tasks import (
|
|||||||
switch_current_sms_provider_on_slow_delivery,
|
switch_current_sms_provider_on_slow_delivery,
|
||||||
trigger_link_tests,
|
trigger_link_tests,
|
||||||
)
|
)
|
||||||
from app.config import Config, QueueNames, TaskNames
|
from app.config import QueueNames, TaskNames, Test
|
||||||
from app.dao.jobs_dao import dao_get_job_by_id
|
from app.dao.jobs_dao import dao_get_job_by_id
|
||||||
from app.dao.provider_details_dao import get_provider_details_by_identifier
|
from app.dao.provider_details_dao import get_provider_details_by_identifier
|
||||||
from app.models import (
|
from app.models import (
|
||||||
@@ -630,7 +630,7 @@ MockServicesWithHighFailureRate = namedtuple(
|
|||||||
[],
|
[],
|
||||||
"1 service(s) have had high permanent-failure rates for sms messages in last "
|
"1 service(s) have had high permanent-failure rates for sms messages in last "
|
||||||
"24 hours:\nservice: {}/services/{} failure rate: 0.3,\n".format(
|
"24 hours:\nservice: {}/services/{} failure rate: 0.3,\n".format(
|
||||||
Config.ADMIN_BASE_URL, "123"
|
Test.ADMIN_BASE_URL, "123"
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@@ -638,7 +638,7 @@ MockServicesWithHighFailureRate = namedtuple(
|
|||||||
[MockServicesSendingToTVNumbers("123", 300)],
|
[MockServicesSendingToTVNumbers("123", 300)],
|
||||||
"1 service(s) have sent over 500 sms messages to tv numbers in last 24 hours:\n"
|
"1 service(s) have sent over 500 sms messages to tv numbers in last 24 hours:\n"
|
||||||
"service: {}/services/{} count of sms to tv numbers: 300,\n".format(
|
"service: {}/services/{} count of sms to tv numbers: 300,\n".format(
|
||||||
Config.ADMIN_BASE_URL, "123"
|
Test.ADMIN_BASE_URL, "123"
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
])
|
])
|
||||||
|
|||||||
Reference in New Issue
Block a user