Skip to content

Commit

Permalink
move assert error msg outside of pytest.raises
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrofelder committed Jan 24, 2025
1 parent dab1c8b commit c4dfb69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/atlasapi/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit c4dfb69

Please sign in to comment.