Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add automated tests #6

Closed
simonw opened this issue Aug 7, 2024 · 1 comment
Closed

Add automated tests #6

simonw opened this issue Aug 7, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@simonw
Copy link
Owner

simonw commented Aug 7, 2024

No description provided.

@simonw simonw added the enhancement New feature or request label Aug 7, 2024
@simonw
Copy link
Owner Author

simonw commented Aug 7, 2024

I got Claude 3.5 Sonnet to write the initial tests:

files-to-prompt . --ignore LICENSE | llm -m claude-3.5-sonnet -s 'step by step advice on how to implement automated tests for this, which is hard because the tests need to work within a temporary Django project that lives in the tests/ directory somehow. Provide all code at the end.'

Response: https://gist.github.com/simonw/a1c51e3a4f30d91eac4664ba84266ca1#response

Then I poked at them with the help of https://pytest-django.readthedocs.io/en/latest/managing_python_path.html until I got them to run. Then I modified them a bit to add some extra assertions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant