Skip to content

Commit

Permalink
test committing a failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
abi committed Feb 23, 2024
1 parent 27165c0 commit d58d66d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions backend/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
2 changes: 1 addition & 1 deletion backend/prompts/test_prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d58d66d

Please sign in to comment.