mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 02:58:25 -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:
@@ -3,12 +3,12 @@ from unittest.mock import ANY, Mock
|
||||
from bs4 import BeautifulSoup
|
||||
from flask import url_for
|
||||
from notifications_python_client.errors import HTTPError
|
||||
from tests.conftest import mock_check_invite_token as mock_check_token_invite
|
||||
from tests.conftest import normalize_spaces
|
||||
from tests.conftest import sample_invite as create_sample_invite
|
||||
|
||||
import app
|
||||
from app.notify_client.models import InvitedUser
|
||||
from tests.conftest import mock_check_invite_token as mock_check_token_invite
|
||||
from tests.conftest import normalize_spaces
|
||||
from tests.conftest import sample_invite as create_sample_invite
|
||||
|
||||
|
||||
def test_existing_user_accept_invite_calls_api_and_redirects_to_dashboard(
|
||||
|
||||
Reference in New Issue
Block a user