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 db_utils tests #53

Merged
merged 5 commits into from
Dec 17, 2024
Merged

Added db_utils tests #53

merged 5 commits into from
Dec 17, 2024

Conversation

cszsol
Copy link
Collaborator

@cszsol cszsol commented Nov 20, 2024

No description provided.

Copy link
Contributor

@WonderPG WonderPG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To me db tests should use a real DB. I agree that it's not needed to execute the SQLAlchemy code, but by mocking everything in my opinion we are missing a lot of details that can cause an error in a normal scenario. We can rediscuss that all together to agree on the correct way to approach these tests maybe.

swarm_copy/tools/bluenaas_memodel_getall.py Show resolved Hide resolved
swarm_copy_tests/app/database/test_db_utils.py Outdated Show resolved Hide resolved
swarm_copy_tests/app/database/test_db_utils.py Outdated Show resolved Hide resolved
Copy link
Contributor

@WonderPG WonderPG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thank you very much !

@kanesoban kanesoban merged commit 29f8e8a into main Dec 17, 2024
5 checks passed
@kanesoban kanesoban deleted the db_tools_unit_tests branch December 17, 2024 12:33
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.

3 participants