-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d43dfb
commit 9d25ce2
Showing
3 changed files
with
16 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -204,10 +204,13 @@ | |
"outputs": [], | ||
"source": [ | ||
"print(f\"num jobs: {len(jobs)}\")\n", | ||
"num_should_submit = 0\n", | ||
"for job in jobs:\n", | ||
" print(\n", | ||
" f\"Job type: {job.job_type}, should succeed: {job.should_succeed}, should submit: {job.should_submit}\"\n", | ||
" )" | ||
" )\n", | ||
" if job.should_submit:\n", | ||
" num_should_submit += 1" | ||
] | ||
}, | ||
{ | ||
|
@@ -247,7 +250,9 @@ | |
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"admin_emails_before = len(email_server.get_emails_for_user(\"[email protected]\"))" | ||
"admin_emails_before = len(email_server.get_emails_for_user(\"[email protected]\"))\n", | ||
"print(\"admin emails before\", admin_emails_before)\n", | ||
"admin_emails_before" | ||
] | ||
}, | ||
{ | ||
|
@@ -372,7 +377,8 @@ | |
"outputs": [], | ||
"source": [ | ||
"admin_emails_after = len(email_server.get_emails_for_user(\"[email protected]\"))\n", | ||
"assert admin_emails_after > admin_emails_before\n", | ||
"print(\"admin emails after\", admin_emails_after)\n", | ||
"assert admin_emails_after >= admin_emails_before + num_should_submit\n", | ||
"# assert len(users_emails) > after_number_of_emails\n", | ||
"# assert len(users_emails) == after_number_of_emails + 1" | ||
] | ||
|
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