Fixes Test for configure Method in DiceInterface
This commit is contained in:
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
### Python ###
|
||||||
|
# Byte-compiled / optimized / DLL files
|
||||||
|
__pycache__/
|
||||||
|
*.py[cod]
|
||||||
|
*$py.class
|
||||||
|
.vscode/settings.json
|
||||||
@@ -1,14 +1,15 @@
|
|||||||
from diceplayer.shared.config.step_dto import StepDTO
|
from diceplayer.shared.interface.gaussian_interface import GaussianInterface
|
||||||
from diceplayer.shared.environment.atom import Atom
|
from diceplayer.shared.interface.dice_interface import DiceInterface
|
||||||
from diceplayer.shared.utils.dataclass_protocol import Dataclass
|
from diceplayer.shared.utils.dataclass_protocol import Dataclass
|
||||||
from diceplayer.shared.config.gaussian_dto import GaussianDTO
|
from diceplayer.shared.config.gaussian_dto import GaussianDTO
|
||||||
from diceplayer.shared.environment.molecule import Molecule
|
from diceplayer.shared.environment.molecule import Molecule
|
||||||
from diceplayer.shared.environment.system import System
|
|
||||||
from diceplayer.shared.utils.misc import weekday_date_time
|
from diceplayer.shared.utils.misc import weekday_date_time
|
||||||
from diceplayer.shared.config.player_dto import PlayerDTO
|
from diceplayer.shared.config.player_dto import PlayerDTO
|
||||||
from diceplayer.shared.interface.gaussian_interface import GaussianInterface
|
from diceplayer.shared.environment.system import System
|
||||||
|
from diceplayer.shared.config.step_dto import StepDTO
|
||||||
from diceplayer.shared.config.dice_dto import DiceDTO
|
from diceplayer.shared.config.dice_dto import DiceDTO
|
||||||
from diceplayer.shared.interface.dice_interface import DiceInterface
|
from diceplayer.shared.environment.atom import Atom
|
||||||
|
from diceplayer.shared.utils.ptable import atommass
|
||||||
|
|
||||||
from dataclasses import fields
|
from dataclasses import fields
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
@@ -18,7 +19,6 @@ import yaml
|
|||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from diceplayer.shared.utils.ptable import atommass
|
|
||||||
|
|
||||||
ENV = ["OMP_STACKSIZE"]
|
ENV = ["OMP_STACKSIZE"]
|
||||||
|
|
||||||
|
|||||||
@@ -34,11 +34,11 @@ class TestDiceInterface(unittest.TestCase):
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
self.assertFalse(hasattr(dice, 'step'))
|
self.assertIsNone(dice.step)
|
||||||
|
|
||||||
dice.configure('test')
|
dice.configure('test')
|
||||||
|
|
||||||
self.assertTrue(hasattr(dice, 'step'))
|
self.assertIsNotNone(dice.step)
|
||||||
|
|
||||||
def test_reset(self):
|
def test_reset(self):
|
||||||
dice = DiceInterface(
|
dice = DiceInterface(
|
||||||
|
|||||||
Reference in New Issue
Block a user