feat: reads potentions from ljc file
This commit is contained in:
@@ -6,6 +6,7 @@ import pytest
|
||||
class TestDiceConfig:
|
||||
def test_class_instantiation(self):
|
||||
dice_dto = DiceConfig(
|
||||
nprocs=1,
|
||||
ljname="test",
|
||||
outname="test",
|
||||
dens=1.0,
|
||||
@@ -18,6 +19,7 @@ class TestDiceConfig:
|
||||
def test_validate_jname(self):
|
||||
with pytest.raises(ValueError) as ex:
|
||||
DiceConfig(
|
||||
nprocs=1,
|
||||
ljname=None,
|
||||
outname="test",
|
||||
dens=1.0,
|
||||
@@ -30,6 +32,7 @@ class TestDiceConfig:
|
||||
def test_validate_outname(self):
|
||||
with pytest.raises(ValueError) as ex:
|
||||
DiceConfig(
|
||||
nprocs=1,
|
||||
ljname="test",
|
||||
outname=None,
|
||||
dens=1.0,
|
||||
@@ -42,6 +45,7 @@ class TestDiceConfig:
|
||||
def test_validate_dens(self):
|
||||
with pytest.raises(ValueError) as ex:
|
||||
DiceConfig(
|
||||
nprocs=1,
|
||||
ljname="test",
|
||||
outname="test",
|
||||
dens=None,
|
||||
@@ -54,6 +58,7 @@ class TestDiceConfig:
|
||||
def test_validate_nmol(self):
|
||||
with pytest.raises(ValueError) as ex:
|
||||
DiceConfig(
|
||||
nprocs=1,
|
||||
ljname="test",
|
||||
outname="test",
|
||||
dens=1.0,
|
||||
@@ -66,6 +71,7 @@ class TestDiceConfig:
|
||||
def test_validate_nstep(self):
|
||||
with pytest.raises(ValueError) as ex:
|
||||
DiceConfig(
|
||||
nprocs=1,
|
||||
ljname="test",
|
||||
outname="test",
|
||||
dens=1.0,
|
||||
@@ -78,6 +84,7 @@ class TestDiceConfig:
|
||||
def test_from_dict(self):
|
||||
dice_dto = DiceConfig.model_validate(
|
||||
{
|
||||
"nprocs": 1,
|
||||
"ljname": "test",
|
||||
"outname": "test",
|
||||
"dens": 1.0,
|
||||
|
||||
@@ -11,6 +11,7 @@ class TestPlayerConfig:
|
||||
@pytest.fixture
|
||||
def dice_payload(self) -> dict[str, Any]:
|
||||
return {
|
||||
"nprocs": 4,
|
||||
"ljname": "test",
|
||||
"outname": "test",
|
||||
"dens": 1.0,
|
||||
@@ -35,7 +36,6 @@ class TestPlayerConfig:
|
||||
"mem": 12,
|
||||
"max_cyc": 100,
|
||||
"switch_cyc": 50,
|
||||
"nprocs": 4,
|
||||
"ncores": 4,
|
||||
"dice": dice_payload,
|
||||
"gaussian": gaussian_payload,
|
||||
@@ -57,7 +57,6 @@ class TestPlayerConfig:
|
||||
mem=12,
|
||||
max_cyc=100,
|
||||
switch_cyc=50,
|
||||
nprocs=4,
|
||||
ncores=4,
|
||||
dice=dice_config,
|
||||
gaussian=gaussian_config,
|
||||
@@ -75,7 +74,6 @@ class TestPlayerConfig:
|
||||
mem=12,
|
||||
max_cyc=100,
|
||||
switch_cyc=50,
|
||||
nprocs=4,
|
||||
ncores=4,
|
||||
altsteps=0,
|
||||
dice=dice_config,
|
||||
|
||||
Reference in New Issue
Block a user