Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

test again with fixed test now

Abi Raja5e3a174203dd
diff --git a/backend/.pre-commit-config.yaml b/backend/.pre-commit-config.yaml
index 7a2fa43b..9a495adb 100644
--- a/backend/.pre-commit-config.yaml
+++ b/backend/.pre-commit-config.yaml
@@ -11,7 +11,7 @@ repos:
hooks:
- id: poetry-pytest
name: Run pytest with Poetry
- entry: cd backend && poetry run pytest
+ entry: poetry run --directory backend pytest
language: system
pass_filenames: false
always_run: true
diff --git a/backend/prompts/test_prompts.py b/backend/prompts/test_prompts.py
index 28f3b0dd..9e604108 100644
--- a/backend/prompts/test_prompts.py
+++ b/backend/prompts/test_prompts.py
@@ -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": "Hee is the code of the SVG: code"},
+ {"role": "user", "content": "Here is the code of the SVG: code"},
]
assert svg == expected_svg