From 369b657eda101d82257ac0308464566ef55b11e4 Mon Sep 17 00:00:00 2001 From: Fabian Zills Date: Fri, 19 Jan 2024 17:19:43 +0100 Subject: [PATCH] update test --- tests/test_znframe.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_znframe.py b/tests/test_znframe.py index ed53f27..9ab1424 100644 --- a/tests/test_znframe.py +++ b/tests/test_znframe.py @@ -72,9 +72,9 @@ def test_to_json(ammonia): def test_water_with_calc(waterWithCalc): frame = Frame.from_atoms(waterWithCalc) - duplicates = list(set(frame.info["calc"].keys()) & set(frame.arrays.keys())) - if duplicates: - raise ValueError(f"Duplicate keys: {duplicates}") + intersection = set(frame.info) & set(frame.arrays) + if intersection: + raise ValueError(f"Duplicate keys: {intersection}") assert "forces" in frame.arrays assert "stress" in frame.info