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 add few shot example (#148) 2022-11-19 20:32:45 -08:00
test_chat.py Harrison/split schema dir (#7025) 2023-07-01 13:39:19 -04:00
test_few_shot_with_templates.py Harrison/prompt template prefix (#888) 2023-02-06 19:09:28 -08:00
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 fix length based example selector (#862) 2023-02-02 22:06:56 -08:00
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 Bug Fix (#221) 2022-11-29 07:03:40 -08:00