Skip to content

Commit 4a557f7

Browse files
zamanafzaliloveagent57
authored andcommitted
feat: SSP Teams plans should be provisioned with enable_analytics_screen=False
1 parent 81b1fc9 commit 4a557f7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

enterprise_access/apps/api_client/lms_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ def create_enterprise_customer(self, *, name, slug, country, **kwargs):
204204
'name': name,
205205
'slug': slug,
206206
'country': country,
207+
'enable_analytics_screen': False,
207208
'site': {
208209
'domain': settings.PROVISIONING_DEFAULTS['customer']['site_domain'],
209210
},

enterprise_access/apps/api_client/tests/test_lms_client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,13 +477,15 @@ def test_create_enterprise_customer_data(self, mock_oauth_client, mock_json):
477477
'name': 'New Customer',
478478
'slug': 'new-customer',
479479
'country': 'US',
480+
'enable_analytics_screen': False,
480481
'other_field': True,
481482
}
482483

483484
mock_created_customer_payload = {
484485
'name': 'New Customer',
485486
'slug': 'new-customer',
486487
'country': 'US',
488+
'enable_analytics_screen': False,
487489
'other_field': True,
488490
}
489491
mock_json.return_value = mock_created_customer_payload
@@ -625,6 +627,7 @@ def test_create_enterprise_customer_error(self, mock_oauth_client):
625627
'name': 'New Customer',
626628
'slug': 'new-customer',
627629
'country': 'US',
630+
'enable_analytics_screen': False,
628631
'other_field': True,
629632
}
630633

0 commit comments

Comments
 (0)