calling a few missing statements

This commit is contained in:
Martin Diehl 2020-05-24 09:06:11 +02:00
parent a3d9520c4b
commit a26cba1457
3 changed files with 5 additions and 0 deletions

View File

@ -15,6 +15,7 @@ class TestSymmetry:
def test_equal(self): def test_equal(self):
symmetry = random.choice(Symmetry.lattices) symmetry = random.choice(Symmetry.lattices)
print(symmetry)
assert Symmetry(symmetry) == Symmetry(symmetry) assert Symmetry(symmetry) == Symmetry(symmetry)
def test_not_equal(self): def test_not_equal(self):

View File

@ -80,6 +80,9 @@ class TestResult:
with pytest.raises(AttributeError): with pytest.raises(AttributeError):
default.pick('invalid',True) default.pick('invalid',True)
def test_add_invalid(self,default):
with pytest.raises(Exception):
default.add_calculation('#invalid#*2')
def test_add_absolute(self,default): def test_add_absolute(self,default):
default.add_absolute('Fe') default.add_absolute('Fe')

View File

@ -882,6 +882,7 @@ class TestRotation:
(Rotation.from_axis_angle, np.array([1,0,0,4])), (Rotation.from_axis_angle, np.array([1,0,0,4])),
(Rotation.from_axis_angle, np.array([1,1,0,1])), (Rotation.from_axis_angle, np.array([1,1,0,1])),
(Rotation.from_matrix, np.random.rand(3,3)), (Rotation.from_matrix, np.random.rand(3,3)),
(Rotation.from_matrix, np.array([[1,1,0],[1,2,0],[0,0,1]])),
(Rotation.from_Rodrigues, np.array([1,0,0,-1])), (Rotation.from_Rodrigues, np.array([1,0,0,-1])),
(Rotation.from_Rodrigues, np.array([1,1,0,1])), (Rotation.from_Rodrigues, np.array([1,1,0,1])),
(Rotation.from_homochoric, np.array([2,2,2])), (Rotation.from_homochoric, np.array([2,2,2])),