pynews.com.br is one of the many independent Mastodon servers you can use to participate in the fediverse.
Ponto de encontro de Pythonistas Brasileiros no Fediverso!

Administered by:

Server stats:

5
active users

@rodbv do you have a preferred way to test that the htmx directives are configured correctly and that htmx does what it's supposed to?

@CodenameTim

I'm still figuring this out. It would be nice to be able to assert the attributes hx-swap, hx-trigger etc but that would require e2e tests. For the unit tests, I am just asserting the content being returned by the partial template, which is OK for simple projects but I'm not very proud of it github.com/rodbv/todo-mx/blob/

It would be great to have `assertTemplateUsed(response, "template#partial"` but it's not supported by django-template-partials yet (github.com/carltongibson/djang)

GitHubtodo-mx/core/tests/test_view_tasks.py at main · rodbv/todo-mxContribute to rodbv/todo-mx development by creating an account on GitHub.

@rodbv that sounds like what we're doing as well. Thank you for following up. I really need to give template partials library a go