Monday, September 25, 2023

Re: Unit test to make sure correct template is returned from a specific URL?

-----BEGIN PGP SIGNATURE-----
Version: ProtonMail

wnUEARYKACcFgmURjiwJkFrvKC74ta6lFiEEXOYF9uqFRn4815bYWu8oLvi1
rqUAAGK6AQC5voAdz4FN0N0nyyTLxrh8g1Mmrwvn4UsyA9iLHAMUKwD/SG//
jDXxnVK7ioGbUadJsjV4sk15EsZvh5kdVBuJ6Ak=
=n1eD
-----END PGP SIGNATURE-----

Thank you very much!

------- Original Message -------
On Monday, September 25th, 2023 at 14:07, Muhammad Juwaini Abdul Rahman <juwaini@gmail.com> wrote:


On Sun, 24 Sept 2023 at 22:37, 'Simon Connah' via Django users <django-users@googlegroups.com> wrote:
I can write a unit test which checks say the title on a page and compares it to a string but that is really prone to breakage. What I want to do instead is to check that the template that is returned by the URL is the same one that is expected in the unit test. Is there an easy way to do this?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/MnCVU2YvJzLiFdMPPAVBwMY7SMosqS5wvqopbySnD05i7BTc375v_Bo5GB4VlUQSd5K2OwsiblAbxsfsz7in96L4_Ou4RTRm0jwVN3aMp54%3D%40protonmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFKhtoRiz4mr69ZLu7_wCxVFXgjnvmAW3JCoYdcDrx%2Bwu94vrw%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/O_3E4w3kT2FE_XgQrWGfQFM_DcKq_syuWJ0eEuZ0zJfIPnZ6rzbF80z28SORLG9r7rik-evYNQhGnchpIcEDOP9zqIX9n_xOntOTHDAbv4M%3D%40protonmail.com.

No comments:

Post a Comment