Cannot run tests #15019
-
Hello everyone,
I'm on PopOs 22.04 and I'm using pytest version 7.4.3. |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 4 replies
-
🤖 Hello @SeppiaBrilla! I'm Dosu, a friendly bot here to assist you with your LangChain journey. I'm here to help you squash bugs, answer your queries, and guide you through contributing to this project. While waiting for a human maintainer, feel free to ask me anything regarding the repository. Let's get those unit tests running! 🚀 The error you're encountering when running LangChain's unit tests with the command To resolve this issue, you can downgrade your pytest version to 7.4.2. You can do this by running the following command: pip install pytest==7.4.2 After downgrading pytest, try running the tests again with As for the I hope this helps! If you have any other questions or need further clarification, feel free to ask. Best, SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Beta Was this translation helpful? Give feedback.
-
@SeppiaBrilla Did you solve this ? I am facing the same issue :/ |
Beta Was this translation helpful? Give feedback.
-
@dosu-bot I have upgraded my pytest to version pytest-8.0.0 . |
Beta Was this translation helpful? Give feedback.
-
I'm somewhat surprised but this |
Beta Was this translation helpful? Give feedback.
-
I would like to contribute, but I also cannot figure out how to run unit tests. The "Langchain > Testing" documentation here specify to build the
I tried running
Edit 1: @hwchase17 - #7959 removed the Edit 2: I found Makefiles in the lower-level directories, but I still get errors there:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Could you review these contributor docs and let me know if things are unclear? https://python.langchain.com/docs/contributing Take a look at the repo structure as well -- it's a mono repo. The root Makefile is a bit confusing, but it's only for docs not for testing code poetry is used all all sub-packages to set up the testing environment and is do-able using the same command (see docs above ^) |
Beta Was this translation helpful? Give feedback.
-
I'm using Python 3.11. I'm still not able to run unit tests. If I run the following commands in a clone repository: rm -rf venv
python -m venv ./venv
. venv/bin/activate
pip install poetry
poetry install --with test
cd libs/langchain/
make test I get the following:
In which directory should I create the In which directory should I run |
Beta Was this translation helpful? Give feedback.
-
that will install all the libraries required for testing |
Beta Was this translation helpful? Give feedback.
Could you review these contributor docs and let me know if things are unclear?
https://python.langchain.com/docs/contributing
Take a look at the repo structure as well -- it's a mono repo. The root Makefile is a bit confusing, but it's only for docs not for testing code
poetry is used all all sub-packages to set up the testing environment and is do-able using the same command (see docs above ^)