test committing a failing test
This commit is contained in:
parent
27165c0286
commit
d58d66d7ff
@ -7,3 +7,12 @@ repos:
|
|||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
- id: check-added-large-files
|
- 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/
|
||||||
|
|||||||
@ -392,6 +392,6 @@ def test_imported_code_prompts():
|
|||||||
svg = assemble_imported_code_prompt("code", "svg", "result_image_data_url")
|
svg = assemble_imported_code_prompt("code", "svg", "result_image_data_url")
|
||||||
expected_svg = [
|
expected_svg = [
|
||||||
{"role": "system", "content": IMPORTED_CODE_SVG_SYSTEM_PROMPT},
|
{"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
|
assert svg == expected_svg
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user