From 61139cb5cb14f093e6668fcde28f1f67fddd8462 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Sep 2024 23:06:51 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- micromagnetictests/calculatortests/info_file.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/micromagnetictests/calculatortests/info_file.py b/micromagnetictests/calculatortests/info_file.py index 2e71e1d..85e3a8f 100644 --- a/micromagnetictests/calculatortests/info_file.py +++ b/micromagnetictests/calculatortests/info_file.py @@ -41,8 +41,8 @@ def test_info_file(calculator): assert "driver" in info assert info["drive_number"] == 0 - assert re.findall(r"\d{4}-\d{2}-\d{2}", info["date"]) is not [] - assert re.findall(r"\d{2}:\d{2}-\d{2}", info["time"]) is not [] + assert re.findall(r"\d{4}-\d{2}-\d{2}", info["date"]) != [] + assert re.findall(r"\d{2}:\d{2}-\d{2}", info["time"]) != [] assert info["driver"] == "TimeDriver" assert info["t"] == 25e-12 assert info["n"] == 10 @@ -64,8 +64,8 @@ def test_info_file(calculator): assert "driver" in info assert info["drive_number"] == 1 - assert re.findall(r"\d{4}-\d{2}-\d{2}", info["date"]) is not [] - assert re.findall(r"\d{2}:\d{2}-\d{2}", info["time"]) is not [] + assert re.findall(r"\d{4}-\d{2}-\d{2}", info["date"]) != [] + assert re.findall(r"\d{2}:\d{2}-\d{2}", info["time"]) != [] assert info["driver"] == "MinDriver" calculator.delete(system)