Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added new file test_fileMetadata.py #96

Closed
wants to merge 1 commit into from
Closed

added new file test_fileMetadata.py #96

wants to merge 1 commit into from

Conversation

Sai-ganesh-0004
Copy link
Contributor

@Sai-ganesh-0004 Sai-ganesh-0004 commented Oct 8, 2024

Description
This pull request introduces new tests for the FileMetadata class in the twinTrim/dataStructures module. The tests cover various scenarios to ensure the correct behavior of the insert_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

  • Tests update

Checklist

  • [YES] My code follows the style guidelines of this project.
  • [YES] I have performed a self-review of my own code.
  • [YES] I have commented my code, particularly in hard-to-understand areas.
  • [YES] My changes generate no new warnings.
  • [YES] New and existing unit tests pass locally with my changes.
  • [YES] I have maintained a clean commit history by using the necessary Git commands.
  • [YES] I have checked that my code does not cause any merge conflicts.

@Sai-ganesh-0004
Copy link
Contributor Author

In the code you can change the path

@Kota-Karthik
Copy link
Owner

@Sai-ganesh-0004
follow PR template , add issue number
move the code to tests/test_allFileMetadata.py
add screenshots so that we can verify test runs well without any failure

@Sai-ganesh-0004
Copy link
Contributor Author

ok im on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants