Conversation
| view.manageUser(users=(rec,)) | ||
| assert api.user.get("siteadmin").getProperty("active") == "inactive" | ||
|
|
||
| def test_cant_deactivate_manager(self, portal): |
There was a problem hiding this comment.
not sure why this was removed?
There was a problem hiding this comment.
I removed it because it wasn't doing what the name suggested. It's suppose to be testing that a manager stays activate even when it's been set to inactivate. So originally I had changed rec = RequestRecord(id="manager", reset_email="noreply@nohost.com", active="active") to rec = RequestRecord(id="manager", reset_email="noreply@nohost.com", active="inactive"),
The asset statement would the check that the manager's activate status did not change. But the test failed because there is nothing from what I could see in the code to keeps you from doing that programmatically. The users overviews page is where we make it so they can't manually update a manager. And there are test for that and for checking that the cron job doesn't do it either.
No description provided.