Skip to content

Commit

Permalink
update keys for billing sync
Browse files Browse the repository at this point in the history
  • Loading branch information
zlwaterfield committed Aug 7, 2024
1 parent e9c3575 commit 9a86434
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ee/billing/billing_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def update_billing_organization_users(self, organization: Organization) -> None:
"distinct_ids": distinct_ids,
"org_customer_email": first_owner.email,
"org_admin_emails": admin_emails,
"org_admin_users": org_users,
"org_users": org_users,
},
)
except Exception as e:
Expand Down
4 changes: 2 additions & 2 deletions ee/billing/test/test_billing_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def test_update_billing_organization_users(self, billing_patch_request_mock: Mag
assert len(billing_patch_request_mock.call_args[1]["json"]["distinct_ids"]) == 2
assert billing_patch_request_mock.call_args[1]["json"]["org_customer_email"] == "[email protected]"
assert billing_patch_request_mock.call_args[1]["json"]["org_admin_emails"] == ["[email protected]"]
assert billing_patch_request_mock.call_args[1]["json"]["org_admin_users"] == [
assert billing_patch_request_mock.call_args[1]["json"]["org_users"] == [
{"email": "[email protected]", "distinct_id": y.distinct_id, "role": 15},
]

Expand Down Expand Up @@ -121,7 +121,7 @@ def test_update_billing_organization_users_with_multiple_members(self, billing_p
assert len(billing_patch_request_mock.call_args[1]["json"]["distinct_ids"]) == 4
assert billing_patch_request_mock.call_args[1]["json"]["org_customer_email"] == "[email protected]"
assert sorted(billing_patch_request_mock.call_args[1]["json"]["org_admin_emails"]) == ["[email protected]", "[email protected]"]
assert billing_patch_request_mock.call_args[1]["json"]["org_admin_users"] == [
assert billing_patch_request_mock.call_args[1]["json"]["org_users"] == [
{"email": "[email protected]", "distinct_id": y2.distinct_id, "role": 8},
{"email": "[email protected]", "distinct_id": y3.distinct_id, "role": 15},
]

0 comments on commit 9a86434

Please sign in to comment.