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 FastAPI Unit Tests #34

Merged
merged 8 commits into from
Nov 19, 2024
Merged

Implement FastAPI Unit Tests #34

merged 8 commits into from
Nov 19, 2024

Conversation

NeonDaniel
Copy link
Member

Description

Adds test coverage for all exposed endpoints with mocked backend methods
Addresses some edge-case bugs in request.client object handling
Fixes/completes model type annotations

Issues

Other Notes

Add default value handling to `request.client` params to address test failures
Add httpx test dependency for FastAPI tests
Fix errors in LLMResponse example
Make IP address lookups in util module safe
@NeonDaniel NeonDaniel requested a review from mikejgray November 14, 2024 17:49
neon_hana/app/routers/util.py Outdated Show resolved Hide resolved
requirements/test_requirements.txt Show resolved Hide resolved
@NeonDaniel NeonDaniel requested a review from mikejgray November 18, 2024 18:00
@NeonDaniel NeonDaniel merged commit 0223749 into dev Nov 19, 2024
6 checks passed
@NeonDaniel NeonDaniel deleted the TEST_FastAPIUnitTests branch November 19, 2024 20:53
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.

2 participants