Fix linter

This commit is contained in:
Rebecca Law
2017-11-29 17:17:08 +00:00
parent 8fc0c8b10d
commit a5ceb4ba3c
4 changed files with 2 additions and 20 deletions

View File

@@ -58,8 +58,7 @@ from tests.app.conftest import (
from tests.app.db import (
create_api_key,
create_job,
create_notification,
create_service_sms_sender
create_notification
)
@@ -1990,4 +1989,3 @@ def test_dao_update_notifications_by_reference_returns_zero_when_no_notification
"billable_units": 2}
)
assert updated_count == 0

View File

@@ -30,7 +30,6 @@ from tests.app.db import (
create_notification,
create_reply_to_email,
create_service_sms_sender,
create_service_with_inbound_number,
create_service_with_defined_sms_sender
)

View File

@@ -3,10 +3,8 @@ from datetime import datetime
import pytest
from freezegun import freeze_time
from app.models import ServiceInboundApi, Service
from tests.app.db import (
create_inbound_sms, create_service, create_service_with_inbound_number,
create_service_inbound_api
create_inbound_sms, create_service, create_service_with_inbound_number
)
@@ -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',
_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

View File

@@ -16,7 +16,6 @@ from app.models import Notification
from app.schema_validation import validate
from app.v2.errors import RateLimitError
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.app.conftest import (
sample_template as create_sample_template,