Skip to content

Commit

Permalink
Trying other file names
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanFauble committed Nov 3, 2023
1 parent 2996ffc commit 70678e6
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions tests/unit/synapseclient/core/unit_test_Cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,10 @@ def test_cache_item_unmodified_modified_items_is_modified_timestamp(self):

# AND a file created in my cache directory
file_path = utils.touch(
os.path.join(my_cache.get_cache_dir(131201), "file1.ext")
os.path.join(
my_cache.get_cache_dir(131201),
"file1_test_cache_item_unmodified_modified_items_is_modified_timestamp.ext",
)
)

# AND the file is added to the cache
Expand All @@ -580,7 +583,10 @@ def test_cache_item_unmodified_modified_items_is_modified_timestamp(self):
my_cache = cache.Cache(cache_root_dir=tmp_dir)

# AND a file created in my cache directory
file_path = os.path.join(my_cache.get_cache_dir(121201), "file1.ext")
file_path = os.path.join(
my_cache.get_cache_dir(121201),
"file1_test_cache_item_unmodified_modified_items_is_modified_timestamp.ext",
)
utils.touch(file_path)
utils.make_bogus_binary_file(filepath=file_path)

Expand Down Expand Up @@ -608,7 +614,10 @@ def test_cache_item_unmodified_not_modified(self):

# AND a file created in my cache directory
file_path = utils.touch(
os.path.join(my_cache.get_cache_dir(111201), "file1.ext")
os.path.join(
my_cache.get_cache_dir(111201),
"file1_test_cache_item_unmodified_not_modified.ext",
)
)

# AND the file is added to the cache
Expand Down

0 comments on commit 70678e6

Please sign in to comment.