File tree Expand file tree Collapse file tree
src/jacobian/domains/number_theory
tests/unit/domains/number_theory Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ def _obligation(
168168 "base" : 2 ,
169169 "target" : 1 ,
170170 "modulus" : 3 ,
171- "resource_budget" : {"wall_seconds" : 1 },
171+ "resource_budget" : {"wall_seconds" : 5 },
172172 },
173173 ),
174174 ),
Original file line number Diff line number Diff line change 33import pytest
44from pydantic import ValidationError
55
6+ from jacobian .domains .number_theory .discrete_logarithm import (
7+ DISCRETE_LOGARITHM_CAPABILITY ,
8+ )
69from jacobian .domains .number_theory .discrete_logarithm_protocol import (
710 PROTOCOL ,
811 DiscreteLogarithmWorkerResult ,
912)
1013
1114
15+ def test_discrete_logarithm_example_budgets_isolated_worker_startup () -> None :
16+ example = DISCRETE_LOGARITHM_CAPABILITY .invocation_examples [0 ]
17+
18+ assert example .input ["resource_budget" ]["wall_seconds" ] == 5
19+
20+
1221def test_discrete_logarithm_worker_result_rejects_unknown_fields () -> None :
1322 with pytest .raises (ValidationError , match = "extra_forbidden" ):
1423 DiscreteLogarithmWorkerResult .model_validate (
You can’t perform that action at this time.
0 commit comments