From d8c4b99046c91b2cc88469bb92f5e364b61d6cd1 Mon Sep 17 00:00:00 2001 From: JaGeo Date: Fri, 22 Nov 2024 05:26:38 +0100 Subject: [PATCH] fix supercell tests --- tests/common/jobs/test_phonons.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/common/jobs/test_phonons.py b/tests/common/jobs/test_phonons.py index 868477b70..69b224590 100644 --- a/tests/common/jobs/test_phonons.py +++ b/tests/common/jobs/test_phonons.py @@ -5,24 +5,24 @@ def test_supercell(si_structure, tmp_dir): - super = get_supercell_size( + supercell = get_supercell_size( si_structure, min_length=10, max_length=None, prefer_90_degrees=False ) - responses = run_locally(super, create_folders=True, ensure_success=True) + responses = run_locally(supercell, create_folders=True, ensure_success=True) assert_allclose( - responses[super.output.uuid][1].output, [[3, -1, 0], [0, 4, 0], [-2, -1, 3]] + responses[supercell.output.uuid][1].output, [[3, -1, 0], [0, 4, 0], [-2, -1, 3]] ) def test_supercell1(si_structure, tmp_dir): - super = get_supercell_size( + supercell = get_supercell_size( si_structure, min_length=8, max_length=13, prefer_90_degrees=True ) - responses = run_locally(super, create_folders=True, ensure_success=True) + responses = run_locally(supercell, create_folders=True, ensure_success=True) assert_allclose( - responses[super.output.uuid][1].output, [[3, -1, 0], [0, 3, 0], [-1, -1, 3]] + responses[supercell.output.uuid][1].output, [[3, -1, 0], [0, 3, 0], [-1, -1, 3]] )