-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add report name to the playtime summary attachment filename. (#1474)
- Loading branch information
1 parent
349f690
commit 13c4b59
Showing
2 changed files
with
11 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -247,7 +247,7 @@ def test_do_run(self, db: DatabaseTransactionFixture): | |
# collection2 library2 | ||
playtime(db.session, identifier, collection2, library2, date3m(3), 300) | ||
|
||
reporting_name = "test-cm" | ||
reporting_name = "test cm" | ||
|
||
# Horrible unbracketted syntax for python 3.8 | ||
with patch("core.jobs.playtime_entries.csv.writer") as writer, patch( | ||
|
@@ -297,7 +297,7 @@ def test_do_run(self, db: DatabaseTransactionFixture): | |
receivers=["[email protected]"], | ||
text="", | ||
attachments={ | ||
f"playtime-summary-{cutoff}-{until}.csv": "" | ||
f"playtime-summary-{reporting_name.replace(' ', '_')}-{cutoff}-{until}.csv": "" | ||
}, # Mock objects do not write data | ||
) | ||
|
||
|