From d564d3a01d1713dc0718207c0a3faeb6e1835886 Mon Sep 17 00:00:00 2001 From: Paddy Harrison Date: Tue, 16 Apr 2024 13:36:15 -0300 Subject: [PATCH] convert test gen to list --- tests/test_structure.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_structure.py b/tests/test_structure.py index 94bfaef..118235a 100644 --- a/tests/test_structure.py +++ b/tests/test_structure.py @@ -34,7 +34,7 @@ def get_parsed_structures( def test_parse_structure(cif_files): for file in cif_files: s, a, p, f = get_parsed_structures(file) - assert all(isinstance(i, Structure) for i in (s, a, p, f)) + assert all([isinstance(i, Structure) for i in (s, a, p, f)]) @pytest.mark.parametrize( @@ -44,4 +44,4 @@ def test_get_functions(fn: Callable, cif_files): for file in cif_files: s, a, p, f = get_parsed_structures(file) ps = fn(s) - assert all(np.allclose(ps, fn(x)) for x in (a, p, f)) + assert all([np.allclose(ps, fn(x)) for x in (a, p, f)])