-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up blocks and userrequests #105
Conversation
@@ -2145,100 +2142,6 @@ def test_cannot_cancel_completed_rg(self, modify_mock): | |||
self.assertEqual(Request.objects.get(pk=completed_r.id).state, 'COMPLETED') | |||
|
|||
|
|||
@patch('observation_portal.common.state_changes.modify_ipp_time_from_requests') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't remember why we kept these commented-out tests... They are testing the isDirty
endpoint, which we replaced with the last_changed
endpoint, which is tested elsewhere. And they also check some request state updates, but state transitions are also tested elsewhere. Let me know if you see anything that this would have been testing that I should add a test for!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pretty sure we commented them early on when the pond block stuff was removed, just to remember to cover those cases later. I don't see anything special in them now, so I think it's fine to delete
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
many deleted files, I like it
@@ -2145,100 +2142,6 @@ def test_cannot_cancel_completed_rg(self, modify_mock): | |||
self.assertEqual(Request.objects.get(pk=completed_r.id).state, 'COMPLETED') | |||
|
|||
|
|||
@patch('observation_portal.common.state_changes.modify_ipp_time_from_requests') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pretty sure we commented them early on when the pond block stuff was removed, just to remember to cover those cases later. I don't see anything special in them now, so I think it's fine to delete
In preparation for turning off the request and lake shims, anything having to do with userrequests and blocks should have been removed.