mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 08:16:51 -04:00
define isort first party (app and tests)
we were seeing isort produce different outputs locally and in docker - this was due to it having different opinions about whether the tests module (ie all our unit tests) is a first party (local) or third party (pip installed) import. It's a first party import, so by defining this in the setup.cfg isort settings, we can force it to be consistent between environments. Note: I don't know why it was different in the first place though
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import uuid
|
||||
|
||||
import pytest
|
||||
from tests import notification_json, single_notification_json
|
||||
|
||||
from app.notify_client.notification_api_client import NotificationApiClient
|
||||
from tests import notification_json, single_notification_json
|
||||
|
||||
|
||||
@pytest.mark.parametrize("arguments,expected_call", [
|
||||
|
||||
@@ -3,10 +3,10 @@ from unittest.mock import patch
|
||||
|
||||
import pytest
|
||||
import werkzeug
|
||||
from tests import service_json
|
||||
from tests.conftest import api_user_active, platform_admin_user, set_config
|
||||
|
||||
from app.notify_client import NotifyAdminAPIClient
|
||||
from tests import service_json
|
||||
from tests.conftest import api_user_active, platform_admin_user, set_config
|
||||
|
||||
SAMPLE_API_KEY = '{}-{}'.format('a' * 36, 's' * 36)
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
from unittest.mock import call
|
||||
|
||||
import pytest
|
||||
from tests.conftest import SERVICE_ONE_ID, fake_uuid
|
||||
|
||||
from app import invite_api_client, service_api_client, user_api_client
|
||||
from app.notify_client.service_api_client import ServiceAPIClient
|
||||
from tests.conftest import SERVICE_ONE_ID, fake_uuid
|
||||
|
||||
FAKE_TEMPLATE_ID = fake_uuid()
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
from unittest.mock import call
|
||||
|
||||
import pytest
|
||||
from tests.conftest import SERVICE_ONE_ID, api_user_pending, fake_uuid
|
||||
|
||||
from app import invite_api_client, service_api_client, user_api_client
|
||||
from app.notify_client.models import User
|
||||
from tests.conftest import SERVICE_ONE_ID, api_user_pending, fake_uuid
|
||||
|
||||
user_id = fake_uuid()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user