Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: materialsproject/pymatgen
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: dd6c9999382ff07c7f4068bdd800cf83bc507360
Choose a base ref
..
head repository: materialsproject/pymatgen
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 49c3078a61fa000daac7ae9c6d8f961a4dbad687
Choose a head ref
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/symmetry/test_structure.py
4 changes: 4 additions & 0 deletions tests/symmetry/test_structure.py
Original file line number Diff line number Diff line change
@@ -16,6 +16,10 @@ def setUp(self):

self.symm_structure = SpacegroupAnalyzer(self.structure).get_symmetrized_structure()

def test_str_repr(self):
assert str(self.symm_structure) == repr(self.symm_structure)
assert "Reduced Formula: Fe" in str(self.symm_structure)

def test_dict(self):
dct = self.symm_structure.as_dict()