This file contains hidden or 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
| #!/usr/bin/env python | |
| """ | |
| Check that IProject(user_id).get_user_inbox_project() returns properly for all users. | |
| Iterates all non-deleted users in batches from the main DB, calls | |
| IProject(user.id).get_user_inbox_project() for each, and reports: | |
| - ok: Returns ProjectView whose id matches user.inbox_project_id | |
| - mismatch: Returns project with different id than user.inbox_project_id | |
| - not_found: UserInboxNotFoundError raised but user has inbox_project_id set |
This file contains hidden or 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
| #!/usr/bin/env python | |
| """ | |
| Check that IProject(user_id).get_user_inbox_project() returns properly for all users. | |
| Iterates all non-deleted users in batches from the main DB, calls | |
| IProject(user.id).get_user_inbox_project() for each, and reports: | |
| - ok: Returns ProjectView whose id matches user.inbox_project_id | |
| - mismatch: Returns project with different id than user.inbox_project_id | |
| - not_found: UserInboxNotFoundError raised but user has inbox_project_id set |