defenseunicorns / leapfrogai

Production-ready Generative AI for local, cloud native, airgap, and edge deployments.
https://leapfrog.ai
Apache License 2.0
257 stars 29 forks source link

chore(api, tests): refactor api tests to centralize file pathing #1165

Closed gphorvath closed 1 month ago

gphorvath commented 1 month ago

Description

Addresses a mounting issue with our python tests where we are reconstructing relative file paths and throwing various not found exceptions while reading test data.

BREAKING CHANGES

None

CHANGES

Moves all test data file pathing into one central test util and attempt to replace as many instances as possible

Related Issue

None

Checklist before merging

netlify[bot] commented 1 month ago

Deploy Preview for leapfrogai-docs canceled.

Name Link
Latest commit f9e13838f82023b5d2fd0042bbfa2be56b11bc07
Latest deploy log https://app.netlify.com/sites/leapfrogai-docs/deploys/66fab5c68791ce0008b2f4a8
jalling97 commented 1 month ago

Not sure if this is the PR for this, but would you be able to add a section to tests/README.md covering the how/why of the conformance tests? Unless I'm missing something I don't think I see where this info lives.