langchain/tests/unit_tests/prompts
Mohammad Mohtashim 7d92e9407b
Jinja2 validation changed to issue warnings rather than issuing exceptions. (#7161)
- Description: If their are missing or extra variables when validating
Jinja 2 template then a warning is issued rather than raising an
exception. This allows for better flexibility for the developer as
described in #7044. Also changed the relevant test so pytest is checking
for raised warnings rather than exceptions.
  - Issue: #7044 
  - Tag maintainer: @hwchase17, @baskaryan

---------

Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
2023-07-05 14:04:29 -04:00
..
__init__.py
test_chat.py Harrison/split schema dir (#7025) 2023-07-01 13:39:19 -04:00
test_few_shot_with_templates.py
test_few_shot.py Jinja2 validation changed to issue warnings rather than issuing exceptions. (#7161) 2023-07-05 14:04:29 -04:00
test_length_based_example_selector.py
test_loading.py Doc refactor (#6300) 2023-06-16 11:52:56 -07:00
test_pipeline_prompt.py Harrison/pipeline prompt (#5540) 2023-06-04 14:29:37 -07:00
test_prompt.py Jinja2 validation changed to issue warnings rather than issuing exceptions. (#7161) 2023-07-05 14:04:29 -04:00
test_utils.py