-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Changing all the raw asserts to self.assert in tests #1483
Comments
I would recommend sending small-sized PRs, changing a single file / a few hundred lines at a time, to make reviewing easier. |
@PyExtreme this could also be a good starting point for you :) |
Updated all raw asserts to corresponding unittest.TestCase.assert. See pytorch#1483
Hi @ekagra-ranjan , this issue has already been picked. Thanks for letting me about it. I have started working on #1375 and that also looks very interesting. Thank you |
Updated all raw asserts to corresponding unittest.TestCase.assert. See pytorch#1483
* test: Updated assert in test_transforms Updated all raw asserts to corresponding unittest.TestCase.assert. See #1483 * test: Fixed linter on test_transforms
Updated all raw asserts to corresponding unittest.TestCase.assert. See pytorch#1483
Updated all raw asserts to corresponding unittest.TestCase.assert. See pytorch#1483
Updated all raw asserts to corresponding unittest.TestCase.assert. See pytorch#1483
Updated all raw asserts to corresponding unittest.TestCase.assert. See pytorch#1483
Updated all raw asserts to corresponding unittest.TestCase.assert. See pytorch#1483
Updated all raw asserts to corresponding unittest.TestCase.assert. See pytorch#1483
Updated all raw asserts to corresponding unittest.TestCase.assert. See pytorch#1483
The last PRs should cover all the remaining bare |
Updated all raw asserts to corresponding unittest.TestCase.assert. See #1483
Updated all raw asserts to corresponding unittest.TestCase.assert. See #1483
Updated all raw asserts to corresponding unittest.TestCase.assert. See #1483
Updated all raw asserts to corresponding unittest.TestCase.assert. See #1483
* test: Updated asserts in test_io Updated all raw asserts to corresponding unittest.TestCase.assert. See #1483 * test: Fixed test_io In order to use unittest.TestCase for asserts in temp_video, the object has to be passed itself to temp_video. * test: Updated asserts to AssertionError Switched initial raw assert to AssertionError. * test: Changed AssertionError for ValueError
* test: Updated asserts in test_onnx Updated all raw asserts to corresponding unittest.TestCase.assert. See #1483 * test: Refactored AssertionError Opted for cleaner raise to avoid error type casting and string conversion
* test: Updated asserts in test_utils Updated all raw asserts to corresponding unittest.TestCase.assert. See #1483 * style: Fixed lint check
Fixed by @frgfm , thanks a lot! |
As pointed out by @fmassa here in #1465. We could switch the existing asserts to the self.assert version of it.
This could be a simple first issue for people to start with.
The text was updated successfully, but these errors were encountered: