You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deftest_hash_directory_differs_for_same_name_in_different_subdirs(tmp_path):
"""Files with identical names but in different sub-directories must affect the hash."""d1=tmp_path/"proj1"d1.mkdir()
(d1/"a").mkdir()
(d1/"a"/"file.txt").write_text("in a")
d2=tmp_path/"proj2"d2.mkdir()
(d2/"b").mkdir()
(d2/"b"/"file.txt").write_text("in a")
asserthash_directory(str(d1), None) !=hash_directory(str(d2), None)
Activity