From d58d66d7ff2c8274415a18c31d4cab3680261cdb Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Fri, 23 Feb 2024 15:26:09 -0500 Subject: [PATCH] test committing a failing test --- backend/.pre-commit-config.yaml | 9 +++++++++ backend/prompts/test_prompts.py | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/backend/.pre-commit-config.yaml b/backend/.pre-commit-config.yaml index eeff765..7a2fa43 100644 --- a/backend/.pre-commit-config.yaml +++ b/backend/.pre-commit-config.yaml @@ -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/ diff --git a/backend/prompts/test_prompts.py b/backend/prompts/test_prompts.py index 9e60410..28f3b0d 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": "Here is the code of the SVG: code"}, + {"role": "user", "content": "Hee is the code of the SVG: code"}, ] assert svg == expected_svg