add testing in the folder test
Opened this issue · 2 comments
Here is a draft response:
@jayendra-ram I have started working on adding testing to the plugnplai repo. My plan is to:
-
Add unit tests for the PluginObject class in plugnplai/plugins.py using the unittest module. I will test the describe_api(), call_operation(), and count_tokens() methods.
-
Create a tests package by adding an init.py file.
-
Add a test_plugins.py file to the tests package to contain the unit tests.
Give me a minute!
I'm a bot that handles simple bugs and feature requests but I might make mistakes. Please be kind!
Hey @jayendra-ram,
I've started working on this PR. The plan is to add unit tests for the functions in plugnplai/embeddings.py
and update the Makefile with a new command to run these tests.
Give me a minute!
Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description.
plugnplai/plugnplai/embeddings.py
Lines 36 to 130 in c4e932a
Lines 1 to 25 in c4e932a
plugnplai/examples/plugin_retriever_with_langchain_agent.ipynb
Lines 73 to 79 in c4e932a
plugnplai/docs/reference/embeddings.rst
Lines 1 to 7 in c4e932a
I'm a bot that handles simple bugs and feature requests but I might make mistakes. Please be kind!