mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-09 23:02:13 -05: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
|
||||
test: ## Run tests
|
||||
# flake8 .
|
||||
# isort --check-only ./app ./tests
|
||||
isort --check-only ./app ./tests
|
||||
pytest -n4 --maxfail=10
|
||||
|
||||
.PHONY: freeze-requirements
|
||||
|
||||
@@ -25,7 +25,7 @@ from app.celery.scheduled_tasks import (
|
||||
switch_current_sms_provider_on_slow_delivery,
|
||||
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.provider_details_dao import get_provider_details_by_identifier
|
||||
from app.models import (
|
||||
@@ -630,7 +630,7 @@ MockServicesWithHighFailureRate = namedtuple(
|
||||
[],
|
||||
"1 service(s) have had high permanent-failure rates for sms messages in last "
|
||||
"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)],
|
||||
"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(
|
||||
Config.ADMIN_BASE_URL, "123"
|
||||
Test.ADMIN_BASE_URL, "123"
|
||||
)
|
||||
]
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user