-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨(dimail) send pending mailboxes upon domain activation #635
base: main
Are you sure you want to change the base?
Conversation
4e78755
to
f83a1f2
Compare
send creation requests to dimail for all pending mailboxes when domain goes from "pending" to "enabled".
f83a1f2
to
4e40e96
Compare
response.content.decode("utf-8").replace("'", '"') | ||
) | ||
# fix format to have actual json | ||
dimail_data = json.loads(response.content.decode("utf-8").replace("'", '"')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not response.json()
? (Question applies not just to this line, but everywhere in the codebase where we have the above form…)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because dimail's reponse used to not be a valid json.
But it might be fixed but invisible because of our mock ... I'm going to check it out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dimail's response seems to be a proper json now so I added it to fixtures and referenced it in all related tests
dimail's ok response upon mailbox creation is used in several tests. All those tests now reference proper response available in fixtures.
## MAILBOXES | ||
|
||
|
||
def response_mailbox_created(email_address): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Purpose
send creation requests to dimail for all pending mailboxes
when domain goes from "pending" to "enabled".
Proposal
Description...