From 455b45f240a6af3ccbc8decb064b3bfe4f61f2e7 Mon Sep 17 00:00:00 2001 From: Travis Briggs Date: Sat, 17 Aug 2024 09:22:43 -0700 Subject: [PATCH] Fix test --- wp1/scores_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp1/scores_test.py b/wp1/scores_test.py index affd3ef1..40ccc19f 100644 --- a/wp1/scores_test.py +++ b/wp1/scores_test.py @@ -116,7 +116,8 @@ def test_download_pageviews(self, mock_get_response, mock_datetime): mock_get_response.return_value = context file_path = scores.get_cur_file_path() - os.remove(file_path) + if os.path.exists(file_path): + os.remove(file_path) scores.download_pageviews()