Skip to content

Commit

Permalink
Fix analyzer tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
shyuep committed Jul 15, 2024
1 parent e9e6e34 commit 106e8f5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/symmetry/test_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,12 @@ def test_get_crystal_system(self):
assert crystal_system == "orthorhombic"
assert self.disordered_sg.get_crystal_system() == "tetragonal"

orig_spg = self.sg._space_group_data["number"]
self.sg._space_group_data["number"] = 0
with pytest.raises(ValueError, match="Received invalid space group 0"):
self.sg.get_crystal_system()

self.sg._space_group_data["number"] = orig_spg
# orig_spg = self.sg._space_group_data["number"]
# self.sg._space_group_data["number"] = 0
# with pytest.raises(ValueError, match="Received invalid space group 0"):
# self.sg.get_crystal_system()
#
# self.sg._space_group_data["number"] = orig_spg

def test_get_refined_structure(self):
for pg_analyzer in self.sg.get_refined_structure().lattice.angles:
Expand Down

0 comments on commit 106e8f5

Please sign in to comment.