Hey there everyone, I am new to open source and currently I am trying to work on the following issue;
” langchain-xai: test_serdes fails due to protocol changes · Issue #32173 · langchain-ai/langchain · GitHub ”
I tried to reproduce the test_serdes failure from issue #32173 inside the LangChain Dev Container.
-
Opened the repo in the Dev Container and navigated to
/libs/partners/xai. -
Initially ran
make test→ no failure. Discoveredpytestwasn’t installed in the.venv. -
Rebuilt
.venv→ installedpytest. -
Ran
pytest tests/unit_tests/test_chat_models_standard.py::TestXAIStandard::test_serdes→ gotunrecognized arguments: --snapshot-warn-unused. -
Learned this flag comes from a snapshot testing plugin not installed by default in the
devextra. Likelysyrupyor similar. Without that plugin, pytest can’t parse the flag, so the test never runs.
I’d appreciate any help on the matter and would appreciate any guidance
Thanks