All checks were successful
gitea-physics/pdme/pipeline/head This commit looks good
21 lines
402 B
Python
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)
|