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 tests for add_or_update function #160

Merged
merged 1 commit into from
Oct 28, 2024
Merged

Added tests for add_or_update function #160

merged 1 commit into from
Oct 28, 2024

Conversation

Sai-ganesh-0004
Copy link
Contributor

Description

This PR adds unit tests to verify the functionality of the add_or_update_file function in allFileMetadata.py. These tests ensure that:

  • New file metadata is added correctly.
  • Metadata is updated when a file with the same hash already exists in the store.

The tests follow the project’s guidelines and use pytest for implementation.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Tests update

Checklist

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

Screenshots (if applicable)

image

@Kota-Karthik
Copy link
Owner

@Sai-ganesh-0004
LGTM!
thank you!

@Kota-Karthik Kota-Karthik merged commit 72d514c into Kota-Karthik:main Oct 28, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Write Tests for add_or_update_file Function
3 participants