From c4dfb697807daafa895f446e59302db1d3b76512 Mon Sep 17 00:00:00 2001 From: alessandrofelder Date: Fri, 24 Jan 2025 15:30:01 +0000 Subject: [PATCH] move assert error msg outside of pytest.raises --- tests/atlasapi/test_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/atlasapi/test_utils.py b/tests/atlasapi/test_utils.py index 8bb3ac80..ab7112f6 100644 --- a/tests/atlasapi/test_utils.py +++ b/tests/atlasapi/test_utils.py @@ -142,7 +142,7 @@ def test_conf_from_file_no_file(temp_path): with pytest.raises(FileNotFoundError) as e: utils.conf_from_file(conf_path) - assert "Last versions cache file not found." == str(e) + assert "Last versions cache file not found." == str(e.value) @pytest.mark.skipif(sys.platform == "win32", reason="Does not run on Windows")