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

test: Added more unit test for some CLI options and some database connections #1421

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

safe049
Copy link

@safe049 safe049 commented Feb 2, 2025

Added more unit test for CLI options

Added unit test for Oracle, PostgreSQL, SQLserver, SQLite, MariaDB, DB2, MongoDB, Cassandra 's connection

@helensilva14
Copy link
Collaborator

/gcbrun

@helensilva14 helensilva14 linked an issue Feb 3, 2025 that may be closed by this pull request
Copy link
Collaborator

@helensilva14 helensilva14 left a comment

Choose a reason for hiding this comment

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

Thanks a lot for your contribution @safe049! I did an overall review since I'm not very acquainted with the CLI unit tests, hopefully @nj1973 or @sundar-mudupalli-work could review them in more technical detail.

But seeing how early our Cloud Build check failed, you probably still need to lint & format your files and you can use our script ./tests/local_check.sh for that. Let me know if you need help!

tests/unit/test_cli_tools.py Outdated Show resolved Hide resolved
tests/unit/test_cli_tools.py Outdated Show resolved Hide resolved
@safe049
Copy link
Author

safe049 commented Feb 4, 2025

I removed those buggy function and a useless import, I think it will be alright now

@helensilva14
Copy link
Collaborator

/gcbrun

@helensilva14 helensilva14 dismissed their stale review February 4, 2025 17:22

I don't have enough context to evaluate the specific CLI unit tests, I'll be assigning to other team member

@helensilva14
Copy link
Collaborator

/gcbrun

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

Successfully merging this pull request may close these issues.

CLI Unit tests could cover more (all?) CLI options
2 participants