test committing a failing test

This commit is contained in:
Abi Raja 2024-02-23 15:26:09 -05:00
parent 27165c0286
commit d58d66d7ff
2 changed files with 10 additions and 1 deletions

View File

@ -7,3 +7,12 @@ repos:
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: local
hooks:
- id: poetry-pytest
name: Run pytest with Poetry
entry: cd backend && poetry run pytest
language: system
pass_filenames: false
always_run: true
files: ^backend/

View File

@ -392,6 +392,6 @@ def test_imported_code_prompts():
svg = assemble_imported_code_prompt("code", "svg", "result_image_data_url")
expected_svg = [
{"role": "system", "content": IMPORTED_CODE_SVG_SYSTEM_PROMPT},
{"role": "user", "content": "Here is the code of the SVG: code"},
{"role": "user", "content": "Hee is the code of the SVG: code"},
]
assert svg == expected_svg