From 5cd58c677c6bf341166f646b726a8a58f3b78c28 Mon Sep 17 00:00:00 2001 From: Sai Ganesh <153413186+Sai-ganesh-0004@users.noreply.github.com> Date: Wed, 9 Oct 2024 20:50:07 +0530 Subject: [PATCH] Delete twinTrim/dataStructures/test_fileMetadata.py --- twinTrim/dataStructures/test_fileMetadata.py | 37 -------------------- 1 file changed, 37 deletions(-) delete mode 100644 twinTrim/dataStructures/test_fileMetadata.py diff --git a/twinTrim/dataStructures/test_fileMetadata.py b/twinTrim/dataStructures/test_fileMetadata.py deleted file mode 100644 index 6bc80ab..0000000 --- a/twinTrim/dataStructures/test_fileMetadata.py +++ /dev/null @@ -1,37 +0,0 @@ -# test_fileMetadata.py -import pytest -from twinTrim.dataStructures.fileMetadata import FileMetadata - -def test_insert_new_file(): - # Test inserting a new file into the metadata - metadata = FileMetadata([]) - file_path = "/path/to/file1.txt" - - metadata.insert_file(file_path) - - assert len(metadata.filepaths) == 1 - assert metadata.filepaths[0] == file_path - -def test_insert_duplicate_file(): - # Test trying to insert a file that is already present - file_path = "/path/to/file2.txt" - metadata = FileMetadata([file_path]) - - metadata.insert_file(file_path) - - # The file should not be added again - assert len(metadata.filepaths) == 1 - assert metadata.filepaths[0] == file_path - -def test_insert_multiple_files(): - # Test inserting multiple different files - file_path1 = "/path/to/file3.txt" - file_path2 = "/path/to/file4.txt" - - metadata = FileMetadata([file_path1]) - - metadata.insert_file(file_path2) - - assert len(metadata.filepaths) == 2 - assert file_path1 in metadata.filepaths - assert file_path2 in metadata.filepaths