test again with fixed test now
This commit is contained in:
parent
d58d66d7ff
commit
5e3a174203
@ -11,7 +11,7 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: poetry-pytest
|
- id: poetry-pytest
|
||||||
name: Run pytest with Poetry
|
name: Run pytest with Poetry
|
||||||
entry: cd backend && poetry run pytest
|
entry: poetry run --directory backend pytest
|
||||||
language: system
|
language: system
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
always_run: true
|
always_run: true
|
||||||
|
|||||||
@ -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": "Hee is the code of the SVG: code"},
|
{"role": "user", "content": "Here is the code of the SVG: code"},
|
||||||
]
|
]
|
||||||
assert svg == expected_svg
|
assert svg == expected_svg
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user