From 92a15e28d72d760c88d0a1d3bf5f74ceafa635fb Mon Sep 17 00:00:00 2001 From: Dou Mok Date: Thu, 2 Jan 2025 09:40:19 -0800 Subject: [PATCH] Cleanup pytests for '_create_path' --- tests/filehashstore/test_filehashstore.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/filehashstore/test_filehashstore.py b/tests/filehashstore/test_filehashstore.py index 7dada123..352a5aad 100644 --- a/tests/filehashstore/test_filehashstore.py +++ b/tests/filehashstore/test_filehashstore.py @@ -1762,7 +1762,7 @@ def test_private_delete_absolute_path(pids, store): def test_create_path(pids, store): - """Test makepath creates folder successfully.""" + """Test _create_path creates folder successfully.""" for pid in pids: root_directory = store.root pid_hex_digest_directory = pids[pid]["metadata_cid"][:2] @@ -1772,13 +1772,12 @@ def test_create_path(pids, store): def test_create_path_permissions(pids, store): - """Test makepath creates folder with expected permissions""" + """Test _create_path creates folder with expected permissions""" for pid in pids: root_directory = store.root pid_hex_digest_directory = pids[pid]["metadata_cid"][:2] pid_directory = root_directory / pid_hex_digest_directory store._create_path(pid_directory) - assert os.path.isdir(pid_directory) # Get the file's permission mode file_stat = os.stat(pid_directory)