|
1 | 1 | """Import functions to avoid .dot import for user""" # pylint: disable = invalid-name |
2 | | -__all__ = ['process', 'assertion', 'utils', "decorator"] |
3 | | -from .process import drop_privileges, run, get_payload_from_executable, ref_util_install_global_exception_hook, run_with_payload, run_capture_output |
| 2 | +__all__ = [ |
| 3 | + # Modules |
| 4 | + 'process', 'assertion', 'utils', 'decorator', 'config', 'serialization', |
| 5 | + # Config |
| 6 | + 'Config', 'get_config', 'set_config', 'override_config', |
| 7 | + # Assertion |
| 8 | + 'assert_is_dir', 'assert_is_exec', 'assert_is_file', |
| 9 | + # Decorator |
| 10 | + 'TestResult', 'TaskTestResult', 'environment_test', 'submission_test', |
| 11 | + 'add_environment_test', 'add_submission_test', 'run_tests', |
| 12 | + # Process |
| 13 | + 'drop_privileges', 'run', 'run_capture_output', 'run_with_payload', |
| 14 | + 'get_payload_from_executable', 'ref_util_install_global_exception_hook', |
| 15 | + # Serialization |
| 16 | + 'IPCSerializer', 'TypeCodec', 'safe_dumps', 'safe_loads', 'get_serializer', |
| 17 | + # Utils |
| 18 | + 'print_ok', 'print_warn', 'print_err', 'write_stdout', |
| 19 | + 'decode_or_str', 'test_result_will_be_submitted', 'get_user_environment', |
| 20 | +] |
4 | 21 | from .assertion import assert_is_dir, assert_is_exec, assert_is_file |
5 | | -from .utils import print_ok, print_warn, print_err, write_stdout, decode_or_str, test_result_will_be_submitted, get_user_environment |
6 | | -from .decorator import add_environment_test, add_submission_test, environment_test, submission_test, run_tests, TestResult |
| 22 | +from .config import Config, get_config, override_config, set_config |
| 23 | +from .decorator import ( |
| 24 | + TaskTestResult, |
| 25 | + TestResult, |
| 26 | + add_environment_test, |
| 27 | + add_submission_test, |
| 28 | + environment_test, |
| 29 | + run_tests, |
| 30 | + submission_test, |
| 31 | +) |
| 32 | +from .process import ( |
| 33 | + drop_privileges, |
| 34 | + get_payload_from_executable, |
| 35 | + ref_util_install_global_exception_hook, |
| 36 | + run, |
| 37 | + run_capture_output, |
| 38 | + run_with_payload, |
| 39 | +) |
| 40 | +from .serialization import ( |
| 41 | + IPCSerializer, |
| 42 | + TypeCodec, |
| 43 | + get_serializer, |
| 44 | + safe_dumps, |
| 45 | + safe_loads, |
| 46 | +) |
| 47 | +from .utils import ( |
| 48 | + decode_or_str, |
| 49 | + get_user_environment, |
| 50 | + print_err, |
| 51 | + print_ok, |
| 52 | + print_warn, |
| 53 | + test_result_will_be_submitted, |
| 54 | + write_stdout, |
| 55 | +) |
7 | 56 |
|
8 | 57 | ref_util_install_global_exception_hook() |
0 commit comments