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,
|
||||
|
||||
Reference in New Issue
Block a user