We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6eb24fc commit 0db4baeCopy full SHA for 0db4bae
1 file changed
tests/test_util.py
@@ -4,7 +4,7 @@
4
from pathlib import Path
5
6
from algobattle.match import BaseConfig
7
-from algobattle.problem import Problem
+from algobattle.problem import MatchConfig, Problem
8
from algobattle.battle import Battle, Iterated, Averaged
9
from . import testsproblem
10
@@ -15,7 +15,7 @@ class Utiltests(unittest.TestCase):
15
@classmethod
16
def setUpClass(cls) -> None:
17
"""Set up a problem, default config, fight handler and get a file name not existing on the file system."""
18
- cls.config = BaseConfig()
+ cls.config = BaseConfig(match=MatchConfig(problem="Test Problem"))
19
cls.problem_path = Path(testsproblem.__file__).parent / "problem.py"
20
cls.rand_file_name = str(random.randint(0, 2**80))
21
while Path(cls.rand_file_name).exists():
0 commit comments