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 the easiest tests for the argus.htmx app #979

Open
5 tasks
hmpf opened this issue Nov 28, 2024 · 1 comment
Open
5 tasks

Add the easiest tests for the argus.htmx app #979

hmpf opened this issue Nov 28, 2024 · 1 comment
Labels
frontend Affects frontend META I contain multitudes task tests Needs tests/affects test framework, incl. tox

Comments

@hmpf
Copy link
Contributor

hmpf commented Nov 28, 2024

Most likely easy pickings:

  • src/argus/htmx/utils.py
  • src/argus/htmx/incidents/utils.py
  • src/argus/htmx/incidents/filter.py
  • src/argus/htmx/incidents/customization.py
  • Increasing coverage of files that already have some

urls.py will be tested if we have integration tests for the views.

@hmpf hmpf added task tests Needs tests/affects test framework, incl. tox META I contain multitudes labels Nov 28, 2024
@github-project-automation github-project-automation bot moved this to 📋 Backlog in HTMXify Argus Nov 28, 2024
@hmpf hmpf moved this from 📋 Backlog to 🔖 Ready in HTMXify Argus Nov 28, 2024
@hmpf
Copy link
Contributor Author

hmpf commented Nov 28, 2024

Views can be tested as units: given a fake request, do they return the expected status code?

I have no clue as to what is the best way to test the htmx-dependent bits.

@hmpf hmpf added the frontend Affects frontend label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Affects frontend META I contain multitudes task tests Needs tests/affects test framework, incl. tox
Projects
Status: 🔖 Ready
Development

No branches or pull requests

1 participant