blog/how-to-create-a-fullstack-application-using-django-and-python-part-16 #19
Replies: 1 comment
-
In this section, I demonstrate an alternative to the original test_form_inputs test in which we used the .assertContains() method to verify the existence of specific inputs residing in the signup form. I install Beautiful Soup 4 and Soup Sieve along with the html5lib HTML parser, and then re-create the test_form_inputs test using those packages. The test is much shorter, and my approach to discovering the ids of the inputs I want to grab by inspecting the signup form element in the browser is quicker and much easier to read! I'm opening up comments for this post. If you have any feedback or questions regarding this post, please comment here! |
Beta Was this translation helpful? Give feedback.
-
blog/how-to-create-a-fullstack-application-using-django-and-python-part-16
In this section, I demonstrate an alternative to the original test_form_inputs test in which we used the .assertContains() method to verify the existence of specific inputs residing in the signup form. I install Beautiful Soup 4 and Soup Sieve along with the html5lib HTML parser, and then re-create the test_form_inputs test using those packages. The test is much shorter, and my approach to discovering the ids of the inputs I want to grab by inspecting the signup form element in the browser is quicker and much easier to read!
https://www.mariadcampbell.com/blog/how-to-create-a-fullstack-application-using-django-and-python-part-16
Beta Was this translation helpful? Give feedback.
All reactions