Skip to content

Commit

Permalink
change total message limit to 100000
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Kehl committed Jan 23, 2025
1 parent e6899ef commit d051955
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ class Config(object):

FREE_SMS_TIER_FRAGMENT_COUNT = 250000

TOTAL_MESSAGE_LIMIT = 250000
TOTAL_MESSAGE_LIMIT = 100000

DAILY_MESSAGE_LIMIT = notifications_utils.DAILY_MESSAGE_LIMIT

Expand Down
2 changes: 1 addition & 1 deletion tests/app/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def sample_service(sample_user):
data = {
"name": service_name,
"message_limit": 1000,
"total_message_limit": 250000,
"total_message_limit": 100000,
"restricted": False,
"email_from": email_from,
"created_by": sample_user,
Expand Down
2 changes: 1 addition & 1 deletion tests/app/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def create_service(
email_from=None,
prefix_sms=True,
message_limit=1000,
total_message_limit=250000,
total_message_limit=100000,
organization_type=OrganizationType.FEDERAL,
check_if_service_exists=False,
go_live_user=None,
Expand Down
22 changes: 11 additions & 11 deletions tests/app/service/test_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def test_create_service(
"name": "created service",
"user_id": str(sample_user.id),
"message_limit": 1000,
"total_message_limit": 250000,
"total_message_limit": 100000,
"restricted": False,
"active": False,
"email_from": "created.service",
Expand Down Expand Up @@ -468,7 +468,7 @@ def test_create_service_with_domain_sets_organization(
"name": "created service",
"user_id": str(sample_user.id),
"message_limit": 1000,
"total_message_limit": 250000,
"total_message_limit": 100000,
"restricted": False,
"active": False,
"email_from": "created.service",
Expand All @@ -495,7 +495,7 @@ def test_create_service_should_create_annual_billing_for_service(
"name": "created service",
"user_id": str(sample_user.id),
"message_limit": 1000,
"total_message_limit": 250000,
"total_message_limit": 100000,
"restricted": False,
"active": False,
"email_from": "created.service",
Expand All @@ -520,7 +520,7 @@ def test_create_service_should_raise_exception_and_not_create_service_if_annual_
"name": "created service",
"user_id": str(sample_user.id),
"message_limit": 1000,
"total_message_limit": 250000,
"total_message_limit": 100000,
"restricted": False,
"active": False,
"email_from": "created.service",
Expand Down Expand Up @@ -557,7 +557,7 @@ def test_create_service_inherits_branding_from_organization(
"name": "created service",
"user_id": str(sample_user.id),
"message_limit": 1000,
"total_message_limit": 250000,
"total_message_limit": 100000,
"restricted": False,
"active": False,
"email_from": "created.service",
Expand All @@ -576,7 +576,7 @@ def test_should_not_create_service_with_missing_user_id_field(notify_api, fake_u
"email_from": "service",
"name": "created service",
"message_limit": 1000,
"total_message_limit": 250000,
"total_message_limit": 100000,
"restricted": False,
"active": False,
"created_by": str(fake_uuid),
Expand All @@ -597,7 +597,7 @@ def test_should_error_if_created_by_missing(notify_api, sample_user):
"email_from": "service",
"name": "created service",
"message_limit": 1000,
"total_message_limit": 250000,
"total_message_limit": 100000,
"restricted": False,
"active": False,
"user_id": str(sample_user.id),
Expand All @@ -623,7 +623,7 @@ def test_should_not_create_service_with_missing_if_user_id_is_not_in_database(
"user_id": fake_uuid,
"name": "created service",
"message_limit": 1000,
"total_message_limit": 250000,
"total_message_limit": 100000,
"restricted": False,
"active": False,
"created_by": str(fake_uuid),
Expand Down Expand Up @@ -666,7 +666,7 @@ def test_should_not_create_service_with_duplicate_name(
"name": sample_service.name,
"user_id": str(sample_service.users[0].id),
"message_limit": 1000,
"total_message_limit": 250000,
"total_message_limit": 100000,
"restricted": False,
"active": False,
"email_from": "sample.service2",
Expand Down Expand Up @@ -694,7 +694,7 @@ def test_create_service_should_throw_duplicate_key_constraint_for_existing_email
"name": service_name,
"user_id": str(first_service.users[0].id),
"message_limit": 1000,
"total_message_limit": 250000,
"total_message_limit": 100000,
"restricted": False,
"active": False,
"email_from": "first.service",
Expand Down Expand Up @@ -1220,7 +1220,7 @@ def test_default_permissions_are_added_for_user_service(
"name": "created service",
"user_id": str(sample_user.id),
"message_limit": 1000,
"total_message_limit": 250000,
"total_message_limit": 100000,
"restricted": False,
"active": False,
"email_from": "created.service",
Expand Down

0 comments on commit d051955

Please sign in to comment.