Skip to content

Commit 0db4bae

Browse files
committed
fix config in util tests
1 parent 6eb24fc commit 0db4bae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from pathlib import Path
55

66
from algobattle.match import BaseConfig
7-
from algobattle.problem import Problem
7+
from algobattle.problem import MatchConfig, Problem
88
from algobattle.battle import Battle, Iterated, Averaged
99
from . import testsproblem
1010

@@ -15,7 +15,7 @@ class Utiltests(unittest.TestCase):
1515
@classmethod
1616
def setUpClass(cls) -> None:
1717
"""Set up a problem, default config, fight handler and get a file name not existing on the file system."""
18-
cls.config = BaseConfig()
18+
cls.config = BaseConfig(match=MatchConfig(problem="Test Problem"))
1919
cls.problem_path = Path(testsproblem.__file__).parent / "problem.py"
2020
cls.rand_file_name = str(random.randint(0, 2**80))
2121
while Path(cls.rand_file_name).exists():

0 commit comments

Comments
 (0)