added new file test_fileMetadata.py #96
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request introduces new tests for the
FileMetadata
class in thetwinTrim/dataStructures
module. The tests cover various scenarios to ensure the correct behavior of theinsert_file
method.New tests added:
test_insert_new_file
: Verifies that a new file can be successfully inserted into the metadata. (twinTrim/dataStructures/test_fileMetadata.py
)test_insert_duplicate_file
: Ensures that attempting to insert a duplicate file does not add it again to the metadata. (twinTrim/dataStructures/test_fileMetadata.py
)test_insert_multiple_files
: Confirms that multiple different files can be inserted into the metadata without issues. (twinTrim/dataStructures/test_fileMetadata.py
)This PR introduces a new test file test_fileMetadata.py to validate the insert_file method in the FileMetadata class. The purpose of this addition is to ensure the method works correctly for both new file insertions and duplicate file handling.
Fixes Issue: #7 Write Unit Tests for add_or_update_normal_file
Type of Change
Checklist