From 04d040b4a9df8363660f1f78a4a5012df2ac3383 Mon Sep 17 00:00:00 2001 From: yardasol Date: Mon, 4 Apr 2022 22:11:51 -0500 Subject: [PATCH 1/2] use lat instead of rlat --- tests/unit_tests/test_lattice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit_tests/test_lattice.py b/tests/unit_tests/test_lattice.py index 28da217b72..b82c2399d3 100644 --- a/tests/unit_tests/test_lattice.py +++ b/tests/unit_tests/test_lattice.py @@ -157,11 +157,11 @@ def hlat3(pincell1, pincell2, uo2, water, zr): def test_get_nuclides(rlat2, rlat3, hlat2, hlat3): for lat in (rlat2, hlat2): - nucs = rlat2.get_nuclides() + nucs = lat.get_nuclides() assert sorted(nucs) == ['H1', 'O16', 'U235', 'Zr90', 'Zr91', 'Zr92', 'Zr94', 'Zr96'] for lat in (rlat3, hlat3): - nucs = rlat3.get_nuclides() + nucs = lat.get_nuclides() assert sorted(nucs) == ['H1', 'H2', 'O16', 'U235', 'Zr90', 'Zr91', 'Zr92', 'Zr94', 'Zr96'] From ff67c85587689f15f4685307a2b7aa6f8ddd7ea3 Mon Sep 17 00:00:00 2001 From: yardasol Date: Mon, 4 Apr 2022 22:13:10 -0500 Subject: [PATCH 2/2] use the correct lines variables --- tests/unit_tests/test_lattice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit_tests/test_lattice.py b/tests/unit_tests/test_lattice.py index b82c2399d3..99bc284b0e 100644 --- a/tests/unit_tests/test_lattice.py +++ b/tests/unit_tests/test_lattice.py @@ -360,7 +360,7 @@ def test_show_indices(): lines = openmc.HexLattice.show_indices(i).split('\n') assert len(lines) == 4*i - 3 lines_x = openmc.HexLattice.show_indices(i, 'x').split('\n') - assert len(lines) == 4*i - 3 + assert len(lines_x) == 4*i - 3 def test_unset_universes():