@@ -15,12 +15,17 @@ class ProgramTests(IsolatedAsyncioTestCase):
1515 def setUpClass (cls ) -> None :
1616 """Set up the config and problem objects."""
1717 cls .problem_path = Path (testsproblem .__file__ ).parent
18- cls .config = AlgobattleConfig ().as_prog_config ()
18+ cls .config = AlgobattleConfig (match = MatchConfig ( problem = "Test Problem" ) ).as_prog_config ()
1919 cls .config_short = AlgobattleConfig (
20- match = MatchConfig (generator = RunConfig (timeout = 2 ), solver = RunConfig (timeout = 2 ))
20+ match = MatchConfig (problem = "Test Problem" , generator = RunConfig (timeout = 2 ), solver = RunConfig (timeout = 2 ))
2121 ).as_prog_config ()
2222 cls .config_strict = AlgobattleConfig (
23- match = MatchConfig (generator = RunConfig (timeout = 2 ), solver = RunConfig (timeout = 2 ), strict_timeouts = True )
23+ match = MatchConfig (
24+ problem = "Test Problem" ,
25+ generator = RunConfig (timeout = 2 ),
26+ solver = RunConfig (timeout = 2 ),
27+ strict_timeouts = True ,
28+ )
2429 ).as_prog_config ()
2530 cls .instance = TestInstance (semantics = True )
2631
@@ -82,9 +87,7 @@ async def test_gen_succ(self):
8287 async def test_sol_strict_timeout (self ):
8388 """The solver times out."""
8489 with await Solver .build (
85- path = self .problem_path / "solver_timeout" ,
86- problem = TestProblem ,
87- config = self .config_strict
90+ path = self .problem_path / "solver_timeout" , problem = TestProblem , config = self .config_strict
8891 ) as sol :
8992 res = await sol .run (self .instance , 5 )
9093 assert res .info .error is not None
0 commit comments