mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-16 20:49:00 -04:00
Merge branch 'main' of https://github.com/GSA/notifications-admin into 1484-dashboard-visualizations
# Conflicts: # package-lock.json # package.json
This commit is contained in:
@@ -67,7 +67,7 @@ SAMPLE_DATA = {
|
||||
}
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
@pytest.fixture
|
||||
def mock_get_orgs_and_services(mocker):
|
||||
return mocker.patch(
|
||||
"app.user_api_client.get_organizations_and_services_for_user",
|
||||
|
||||
@@ -7,7 +7,7 @@ from app.main.views.service_settings import PLATFORM_ADMIN_SERVICE_PERMISSIONS
|
||||
from tests.conftest import normalize_spaces
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
@pytest.fixture
|
||||
def get_service_settings_page(
|
||||
client_request,
|
||||
platform_admin_user,
|
||||
|
||||
@@ -33,7 +33,7 @@ from tests.conftest import (
|
||||
FAKE_TEMPLATE_ID = uuid4()
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
@pytest.fixture
|
||||
def _mock_get_service_settings_page_common(
|
||||
mock_get_inbound_number_for_service,
|
||||
mock_get_free_sms_fragment_limit,
|
||||
|
||||
@@ -100,19 +100,19 @@ MOCK_JOBS = {
|
||||
}
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
@pytest.fixture
|
||||
def _mock_no_users_for_service(mocker):
|
||||
mocker.patch("app.models.user.Users.client_method", return_value=[])
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
@pytest.fixture
|
||||
def mock_get_existing_user_by_email(mocker, api_user_active):
|
||||
return mocker.patch(
|
||||
"app.user_api_client.get_user_by_email", return_value=api_user_active
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
@pytest.fixture
|
||||
def mock_check_invite_token(mocker, sample_invite):
|
||||
return mocker.patch("app.invite_api_client.check_token", return_value=sample_invite)
|
||||
|
||||
|
||||
@@ -1882,7 +1882,7 @@ def test_service_dashboard_shows_batched_jobs(
|
||||
assert len(rows) == 1
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
@pytest.fixture
|
||||
def app_with_socketio():
|
||||
app = Flask("app")
|
||||
create_app(app)
|
||||
|
||||
@@ -9,7 +9,7 @@ from tests.conftest import (
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
@pytest.fixture
|
||||
def mock_email_validated_recently(mocker):
|
||||
return mocker.patch(
|
||||
"app.main.views.two_factor.email_needs_revalidating", return_value=False
|
||||
|
||||
Reference in New Issue
Block a user