From d03280776d9e3a315aebb06db0c4eff784632f0a Mon Sep 17 00:00:00 2001 From: venusbb Date: Thu, 30 Nov 2017 09:38:57 +0000 Subject: [PATCH] CodeStyle correction --- tests/app/dao/test_service_callback_api_dao.py | 2 +- tests/app/db.py | 8 ++++---- tests/app/service/test_callback_rest.py | 4 ++-- tests/app/service/test_rest.py | 1 - 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/tests/app/dao/test_service_callback_api_dao.py b/tests/app/dao/test_service_callback_api_dao.py index 4f064a8a0..884c87bac 100644 --- a/tests/app/dao/test_service_callback_api_dao.py +++ b/tests/app/dao/test_service_callback_api_dao.py @@ -70,7 +70,7 @@ def test_update_service_callback_api(sample_service): saved_callback_api = results[0] reset_service_callback_api(saved_callback_api, updated_by_id=sample_service.users[0].id, - url="https://some_service/changed_url") + url="https://some_service/changed_url") updated_results = ServiceCallbackApi.query.all() assert len(updated_results) == 1 updated = updated_results[0] diff --git a/tests/app/db.py b/tests/app/db.py index d3131e479..879d9ee39 100644 --- a/tests/app/db.py +++ b/tests/app/db.py @@ -308,10 +308,10 @@ def create_service_callback_api( bearer_token="some_super_secret", ): service_callback_api = ServiceCallbackApi(service_id=service.id, - url=url, - bearer_token=bearer_token, - updated_by_id=service.users[0].id - ) + url=url, + bearer_token=bearer_token, + updated_by_id=service.users[0].id + ) save_service_callback_api(service_callback_api) return service_callback_api diff --git a/tests/app/service/test_callback_rest.py b/tests/app/service/test_callback_rest.py index f22bc0903..a0e8c8722 100644 --- a/tests/app/service/test_callback_rest.py +++ b/tests/app/service/test_callback_rest.py @@ -126,7 +126,7 @@ def test_set_service_callback_api_raises_404_when_service_does_not_exist(client, def test_update_service_callback_api_updates_url(client, sample_service): service_callback_api = create_service_callback_api(service=sample_service, - url="https://original_url.com") + url="https://original_url.com") data = { "url": "https://another_url.com", @@ -143,7 +143,7 @@ def test_update_service_callback_api_updates_url(client, sample_service): def test_update_service_callback_api_updates_bearer_token(client, sample_service): service_callback_api = create_service_callback_api(service=sample_service, - bearer_token="some_super_secret") + bearer_token="some_super_secret") data = { "bearer_token": "different_token", "updated_by_id": str(sample_service.users[0].id) diff --git a/tests/app/service/test_rest.py b/tests/app/service/test_rest.py index 6bc8da4fc..73679001f 100644 --- a/tests/app/service/test_rest.py +++ b/tests/app/service/test_rest.py @@ -30,7 +30,6 @@ from tests.app.conftest import ( from tests.app.db import ( create_service, create_template, - create_service_inbound_api, create_notification, create_reply_to_email, create_letter_contact,