mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-05 21:38:25 -04:00
Fix linter
This commit is contained in:
@@ -58,8 +58,7 @@ from tests.app.conftest import (
|
|||||||
from tests.app.db import (
|
from tests.app.db import (
|
||||||
create_api_key,
|
create_api_key,
|
||||||
create_job,
|
create_job,
|
||||||
create_notification,
|
create_notification
|
||||||
create_service_sms_sender
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@@ -1990,4 +1989,3 @@ def test_dao_update_notifications_by_reference_returns_zero_when_no_notification
|
|||||||
"billable_units": 2}
|
"billable_units": 2}
|
||||||
)
|
)
|
||||||
assert updated_count == 0
|
assert updated_count == 0
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ from tests.app.db import (
|
|||||||
create_notification,
|
create_notification,
|
||||||
create_reply_to_email,
|
create_reply_to_email,
|
||||||
create_service_sms_sender,
|
create_service_sms_sender,
|
||||||
create_service_with_inbound_number,
|
|
||||||
create_service_with_defined_sms_sender
|
create_service_with_defined_sms_sender
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -3,10 +3,8 @@ from datetime import datetime
|
|||||||
import pytest
|
import pytest
|
||||||
from freezegun import freeze_time
|
from freezegun import freeze_time
|
||||||
|
|
||||||
from app.models import ServiceInboundApi, Service
|
|
||||||
from tests.app.db import (
|
from tests.app.db import (
|
||||||
create_inbound_sms, create_service, create_service_with_inbound_number,
|
create_inbound_sms, create_service, create_service_with_inbound_number
|
||||||
create_service_inbound_api
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@@ -291,15 +289,3 @@ def test_get_inbound_sms_by_id_with_invalid_service_id_returns_404(admin_request
|
|||||||
inbound_sms_id='2cfbd6a1-1575-4664-8969-f27be0ea40d9',
|
inbound_sms_id='2cfbd6a1-1575-4664-8969-f27be0ea40d9',
|
||||||
_expected_status=404
|
_expected_status=404
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def test_inbound_api_blah(notify_db_session):
|
|
||||||
service = create_service()
|
|
||||||
api = create_service_inbound_api(service=service)
|
|
||||||
|
|
||||||
print("***************")
|
|
||||||
from_db = Service.query.all()[0]
|
|
||||||
print("--------------------")
|
|
||||||
from_db_service = from_db.inbound_api
|
|
||||||
print("***************")
|
|
||||||
assert 1 == 1
|
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ from app.models import Notification
|
|||||||
from app.schema_validation import validate
|
from app.schema_validation import validate
|
||||||
from app.v2.errors import RateLimitError
|
from app.v2.errors import RateLimitError
|
||||||
from app.v2.notifications.notification_schemas import post_sms_response, post_email_response
|
from app.v2.notifications.notification_schemas import post_sms_response, post_email_response
|
||||||
from app.v2.notifications.post_notifications import persist_sender_to_notification_mapping
|
|
||||||
from tests import create_authorization_header
|
from tests import create_authorization_header
|
||||||
from tests.app.conftest import (
|
from tests.app.conftest import (
|
||||||
sample_template as create_sample_template,
|
sample_template as create_sample_template,
|
||||||
|
|||||||
Reference in New Issue
Block a user