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

Implement unit tests for aivpn.py modules #55

Open
ay-bh opened this issue Mar 21, 2024 · 0 comments · May be fixed by #56
Open

Implement unit tests for aivpn.py modules #55

ay-bh opened this issue Mar 21, 2024 · 0 comments · May be fixed by #56
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@ay-bh
Copy link

ay-bh commented Mar 21, 2024

Is your feature request related to a problem? Please describe.
The AI VPN project currently lacks a comprehensive suite of unit tests.

Describe the solution you'd like
I propose the addition of these unit tests for aivpn.py that covers critical paths and edge cases for the validate_identity and manage_whois functions. These tests should mock external dependencies, like the Redis database, to ensure we're accurately isolating and testing the logic contained within each function.

The unit tests should:

  • Validate correct handling of valid and invalid identities.
  • Ensure the manage_whois function correctly interacts with the mocked Redis database and returns the expected outputs.
  • Verify error handling and edge cases, such as non-existent users or database connection issues.
@ay-bh ay-bh linked a pull request Mar 21, 2024 that will close this issue
@ay-bh ay-bh changed the title Implement Unit Tests for aivpn.py Modules Implement unit tests for aivpn.py modules Mar 21, 2024
@verovaleros verovaleros added the enhancement New feature or request label Mar 27, 2024
@verovaleros verovaleros added this to the v0.1.3-beta milestone Mar 27, 2024
@verovaleros verovaleros linked a pull request Mar 27, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 📋 Backlog
Development

Successfully merging a pull request may close this issue.

2 participants