pdme/tests/model/test_model_interface.py
Deepak Mallubhotla 0d5508a0b5
All checks were successful
gitea-physics/pdme/pipeline/head This commit looks good
feat!: reduces model to minimal bayes needed stuff
2022-04-30 10:47:39 -05:00

21 lines
402 B
Python

from pdme.model import Model
import pytest
def test_model_interface_not_implemented_one_dipoles():
model = Model()
model.point_length = lambda: 2
with pytest.raises(NotImplementedError):
model.get_dipoles(5)
def test_model_interface_not_implemented_n_dipoles():
model = Model()
model.point_length = lambda: 2
with pytest.raises(NotImplementedError):
model.get_n_single_dipoles(5, 10)