Last active
November 11, 2024 03:58
-
-
Save yuya-maemichi-synspective/8d28c7610058b016a2259a43f900d403 to your computer and use it in GitHub Desktop.
Python snippets
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
import unittest | |
class RandomTestLoader(unittest.TestLoader): | |
@staticmethod | |
def sortTestMethodsUsing(_a, _b): | |
from random import choice | |
return choice((-1, 0, 1)) | |
if __name__ == '__main__': | |
unittest.main(testLoader=RandomTestLoader()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment