Skip to content

Commit

Permalink
fix: adjust test since the island creation fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX committed Aug 24, 2024
1 parent 3968a14 commit cdd7f86
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/py/unit/test_tools_build_defect.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,9 @@ def test_create_island():

defect = create_slab_defect(configuration=island_config, builder=IslandSlabDefectBuilder())

# Only one atom is in the island for this configuration
assert len(defect.basis.elements.values) == len(SLAB_111.basis.elements.values) + 1
# Only 2 atoms in the island were added for this configuration
NUMBER_OF_ATOMS_IN_ISLAND = 2
assert len(defect.basis.elements.values) == len(SLAB_111.basis.elements.values) + NUMBER_OF_ATOMS_IN_ISLAND
assert defect.basis.elements.values[-1] == "Si"


Expand Down

0 comments on commit cdd7f86

Please sign in to comment.