PATH: //proc/self/root/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: __main__.py
import os import unittest def load_tests(loader, standard_tests, pattern): # top level directory cached on loader instance this_dir = os.path.dirname(__file__) pattern = pattern or "test_*.py" # We are inside unittest.test, so the top-level is two notches up top_level_dir = os.path.dirname(os.path.dirname(this_dir)) package_tests = loader.discover(start_dir=this_dir, pattern=pattern, top_level_dir=top_level_dir) standard_tests.addTests(package_tests) return standard_tests if __name__ == '__main__': unittest.main()
SIMPAN PERUBAHAN