rbx.cp 0.5.40__py3-none-any.whl → 0.5.45__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rbx/box/builder.py +6 -6
- rbx/box/checkers.py +100 -25
- rbx/box/cli.py +868 -0
- rbx/box/code.py +272 -84
- rbx/box/contest/statements.py +4 -2
- rbx/box/generators.py +55 -49
- rbx/box/generators_test.py +7 -7
- rbx/box/main.py +1 -868
- rbx/box/package.py +57 -2
- rbx/box/packaging/boca/packager.py +2 -1
- rbx/box/packaging/main.py +17 -9
- rbx/box/packaging/moj/packager.py +49 -10
- rbx/box/retries.py +5 -5
- rbx/box/schema.py +20 -4
- rbx/box/solutions.py +46 -108
- rbx/box/solutions_test.py +5 -6
- rbx/box/state.py +1 -0
- rbx/box/statements/build_statements.py +4 -2
- rbx/box/stresses.py +23 -12
- rbx/box/tasks.py +277 -0
- rbx/box/testcase_extractors.py +21 -21
- rbx/box/testcases/main.py +19 -14
- rbx/box/unit.py +10 -7
- rbx/box/validators.py +10 -10
- rbx/box/validators_test.py +3 -3
- rbx/grading/judge/cacher.py +0 -4
- rbx/grading/judge/digester.py +0 -3
- rbx/grading/judge/sandbox.py +15 -0
- rbx/grading/judge/sandboxes/stupid_sandbox.py +20 -6
- rbx/grading/judge/sandboxes/timeit.py +117 -7
- rbx/grading/judge/storage.py +0 -4
- rbx/grading/steps.py +76 -2
- rbx/grading/steps_with_caching.py +45 -3
- rbx/grading/steps_with_caching_run_test.py +51 -49
- rbx/main.py +0 -4
- rbx/resources/packagers/moj/scripts/compare.sh +25 -6
- rbx/test.py +6 -4
- {rbx_cp-0.5.40.dist-info → rbx_cp-0.5.45.dist-info}/METADATA +2 -2
- {rbx_cp-0.5.40.dist-info → rbx_cp-0.5.45.dist-info}/RECORD +42 -55
- {rbx_cp-0.5.40.dist-info → rbx_cp-0.5.45.dist-info}/WHEEL +1 -1
- rbx/testdata/box1/gen1.cpp +0 -7
- rbx/testdata/box1/gen2.cpp +0 -9
- rbx/testdata/box1/genScript.py +0 -2
- rbx/testdata/box1/hard-tle.sol.cpp +0 -26
- rbx/testdata/box1/ole.cpp +0 -17
- rbx/testdata/box1/problem.rbx.yml +0 -39
- rbx/testdata/box1/re.sol.cpp +0 -23
- rbx/testdata/box1/sol.cpp +0 -22
- rbx/testdata/box1/tests/1.in +0 -1
- rbx/testdata/box1/tle-and-incorrect.sol.cpp +0 -33
- rbx/testdata/box1/tle.sol.cpp +0 -35
- rbx/testdata/box1/validator.cpp +0 -11
- rbx/testdata/box1/wa.sol.cpp +0 -22
- rbx/testdata/caching/executable.py +0 -1
- rbx/testdata/compatible +0 -0
- {rbx_cp-0.5.40.dist-info → rbx_cp-0.5.45.dist-info}/LICENSE +0 -0
- {rbx_cp-0.5.40.dist-info → rbx_cp-0.5.45.dist-info}/entry_points.txt +0 -0
rbx/box/generators_test.py
CHANGED
@@ -12,12 +12,12 @@ from rbx.testing_utils import print_directory_tree
|
|
12
12
|
|
13
13
|
|
14
14
|
@pytest.mark.test_pkg('box1')
|
15
|
-
def test_generator_works(pkg_from_testdata: pathlib.Path):
|
16
|
-
generate_testcases()
|
15
|
+
async def test_generator_works(pkg_from_testdata: pathlib.Path):
|
16
|
+
await generate_testcases()
|
17
17
|
entries = [
|
18
|
-
entry.group_entry for entry in extract_generation_testcases_from_groups()
|
18
|
+
entry.group_entry for entry in await extract_generation_testcases_from_groups()
|
19
19
|
]
|
20
|
-
generate_outputs_for_testcases(entries)
|
20
|
+
await generate_outputs_for_testcases(entries)
|
21
21
|
|
22
22
|
# Debug when fail.
|
23
23
|
print_directory_tree(pkg_from_testdata)
|
@@ -37,11 +37,11 @@ def test_generator_works(pkg_from_testdata: pathlib.Path):
|
|
37
37
|
|
38
38
|
|
39
39
|
@pytest.mark.test_pkg('box1')
|
40
|
-
def test_generator_cache_works(
|
40
|
+
async def test_generator_cache_works(
|
41
41
|
pkg_from_testdata: pathlib.Path,
|
42
42
|
):
|
43
43
|
# Run the first time.
|
44
|
-
generate_testcases()
|
44
|
+
await generate_testcases()
|
45
45
|
assert (
|
46
46
|
package.get_build_testgroup_path('gen1') / '1-gen-000.in'
|
47
47
|
).read_text() == '123\n'
|
@@ -54,7 +54,7 @@ def test_generator_cache_works(
|
|
54
54
|
gen_path.write_text(gen_path.read_text().replace('123', '4567'))
|
55
55
|
|
56
56
|
# Run the second time.
|
57
|
-
generate_testcases()
|
57
|
+
await generate_testcases()
|
58
58
|
|
59
59
|
# Debug when fail.
|
60
60
|
print_directory_tree(pkg_from_testdata)
|