refactor: update Python version and optimize dice configuration parameters
This commit is contained in:
@@ -4,6 +4,7 @@ from diceplayer.dice.dice_input import (
|
||||
NPTTerConfig,
|
||||
NVTEqConfig,
|
||||
NVTTerConfig,
|
||||
write_config,
|
||||
)
|
||||
|
||||
import pytest
|
||||
@@ -60,11 +61,7 @@ class TestDiceInput:
|
||||
def test_write_dice_config(self, player_config: PlayerConfig, tmp_path: Path):
|
||||
dice_input = NVTTerConfig.from_config(player_config)
|
||||
|
||||
output_file = tmp_path / "nvt_ter.inp"
|
||||
output_file = tmp_path / dice_input.type
|
||||
write_config(dice_input, tmp_path)
|
||||
|
||||
with open(output_file, "w") as file:
|
||||
dice_input.write_dice_config(file)
|
||||
|
||||
assert output_file.exists()
|
||||
|
||||
print(output_file.read_text())
|
||||
assert output_file.exists()
|
||||
|
||||
Reference in New Issue
Block a user