PATH: //opt/alt/python311/lib64/python3.11/unittest/test
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 __init__.py
↓
X
📄 __main__.py
↓
X
📁 __pycache__/
X
📄 _test_warnings.py
↓
X
📄 dummy.py
↓
X
📄 support.py
↓
X
📄 test_assertions.py
↓
X
📄 test_async_case.py
↓
X
📄 test_break.py
↓
X
📄 test_case.py
↓
X
📄 test_discovery.py
↓
X
📄 test_functiontestcase.py
↓
X
📄 test_loader.py
↓
X
📄 test_program.py
↓
X
📄 test_result.py
↓
X
📄 test_runner.py
↓
X
📄 test_setups.py
↓
X
📄 test_skipping.py
↓
X
📄 test_suite.py
↓
X
📁 testmock/
X
SAVING...
BERHASIL DIUBAH!
EDITING: __init__.py
import os import sys import unittest here = os.path.dirname(__file__) loader = unittest.defaultTestLoader def suite(): suite = unittest.TestSuite() for fn in os.listdir(here): if fn.startswith("test") and fn.endswith(".py"): modname = "unittest.test." + fn[:-3] try: __import__(modname) except unittest.SkipTest: continue module = sys.modules[modname] suite.addTest(loader.loadTestsFromModule(module)) suite.addTest(loader.loadTestsFromName('unittest.test.testmock')) return suite if __name__ == "__main__": unittest.main(defaultTest="suite")
SIMPAN PERUBAHAN