Unit Tests
Added unit tests with Pytest can run pytest while in directory to run tests
Sets up by embedding two text files in testFiles folder (superbowl.txt and short.txt)
Tests getting IDs, deleting IDs, querying one and multiple IDs directly
Tests basic core functionality
I'd love to see a testing framework on this project and potentially contribute tests. We are experiencing some reliability issues and it would be nice to be able to define tests to iterate quickly on fixes.
A couple of questions:
Why camelCase the testFiles? That seems like an anti-pattern for the rest of the repo / LibreChat?
I could see the number of test files growing over time as folks find types of files that fail under different conditions. Maybe if / when that happens the approach of storing test files directly in the repo could be revisited.
test_api is a broad name. Should that be split into separate files for different services so the number of tests can expand over time? E.g., test_embed etc.