Skip to content

Commit

Permalink
convert test gen to list
Browse files Browse the repository at this point in the history
  • Loading branch information
harripj committed Apr 16, 2024
1 parent 630e6e9 commit d564d3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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)])

0 comments on commit d564d3a

Please sign in to comment.