Skip to content

Db tests#660

Merged
cyc60 merged 9 commits intomasterfrom
db-tests
Feb 16, 2026
Merged

Db tests#660
cyc60 merged 9 commits intomasterfrom
db-tests

Conversation

@cyc60
Copy link
Copy Markdown
Contributor

@cyc60 cyc60 commented Feb 12, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 12, 2026 10:44
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds comprehensive database tests for validator management and checkpoints, while also refactoring database query parameter passing to use dictionary-based named parameters instead of tuples.

Changes:

  • Added complete test coverage for NetworkValidatorCrud, CheckpointCrud, and VaultValidatorCrud classes
  • Refactored SQL query parameter passing from tuple-based to dictionary-based named parameters for improved clarity
  • Added a UNIQUE constraint to the checkpoints table to prevent duplicate entries

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/validators/tests/test_database.py New test file with comprehensive test coverage for all three CRUD classes including edge cases and validation
src/validators/database.py Refactored parameter passing to use dictionaries and added UNIQUE constraint to checkpoints table

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings February 13, 2026 11:55
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings February 13, 2026 14:14
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: cyc60 <avsysoev60@gmail.com>
@cyc60 cyc60 merged commit 65a3ef1 into master Feb 16, 2026
8 checks passed
@cyc60 cyc60 deleted the db-tests branch February 16, 2026 14:25
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