aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/test_file_utils.py
diff options
context:
space:
mode:
authorBonfaceKilz2021-02-12 22:05:53 +0300
committerBonfaceKilz2021-02-12 22:05:53 +0300
commitadb9a6e3d570c86cf902d6293b30fc1f0f27df82 (patch)
tree9c0fd48d8ffff9d140a26b838cc54504cc553aad /tests/unit/test_file_utils.py
parentb2254d8f5fdabd97e38dcdbaebd5d8352309cd46 (diff)
downloadgenenetwork3-adb9a6e3d570c86cf902d6293b30fc1f0f27df82.tar.gz
Use sorted list of files when calculating md5sums of directory
* gn3/file_utils.py (get_dir_hash): Sort list of files before calculating their md5sums. * tests/unit/test_file_utils.py (test_get_dir_hash): Update test-case md5sum.
Diffstat (limited to 'tests/unit/test_file_utils.py')
-rw-r--r--tests/unit/test_file_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/test_file_utils.py b/tests/unit/test_file_utils.py
index a54680d..f5efa02 100644
--- a/tests/unit/test_file_utils.py
+++ b/tests/unit/test_file_utils.py
@@ -13,7 +13,7 @@ class TestFileUtils(unittest.TestCase):
def test_get_dir_hash(self):
"""Test that a directory is hashed correctly"""
test_dir = os.path.join(os.path.dirname(__file__), "test_data")
- self.assertEqual("928a0e2e4846b4b3c2881d9c1d6cfce4",
+ self.assertEqual("fd9d74a9554b7f13bfeffbdda8e61486",
get_dir_hash(test_dir))
def test_get_dir_hash_non_existent_dir(self):