forked from superdesk/newsroom-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add default config and include user in cc
- Loading branch information
1 parent
3bb7dae
commit bfcf3a2
Showing
5 changed files
with
26 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -313,6 +313,9 @@ def test_agenda_search_filtered_by_query_product(client, app, public_company): | |
|
||
@mock.patch("newsroom.email.send_email", mock_send_email) | ||
def test_coverage_request(client, app): | ||
# enable config to include current user in CC | ||
app.config["INCLUDE_CURRENT_USER_IN_CC"] = True | ||
|
||
post_json( | ||
client, | ||
"/settings/general_settings", | ||
|
@@ -332,7 +335,8 @@ def test_coverage_request(client, app): | |
|
||
assert resp.status_code == 201, resp.get_data().decode("utf-8") | ||
assert len(outbox) == 1 | ||
assert outbox[0].recipients == ["[email protected]", "[email protected]"] | ||
assert outbox[0].recipients == ["[email protected]"] | ||
assert outbox[0].cc == ["[email protected]"] | ||
assert outbox[0].subject == "Coverage inquiry: Conference Planning" | ||
assert "admin admin" in outbox[0].body | ||
assert "[email protected]" in outbox[0].body | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters