From the course: Test-Driven Development in Django

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

User input with functional tests

User input with functional tests

From the course: Test-Driven Development in Django

Start my 1-month free trial

User input with functional tests

- Now we have all these beautiful unit test cases but, if we scroll up on our test op py file, remember these functional tests the real reason we started all of this, the reason we were writing these unit tests? Well it's time now to come full circle and see if we can get these to work. So. Let's go ahead and un-comment these. You can select it all and add 'em if you hit command and then the forward slash you can un-comment that. One note that I want to make here is that I misspelled browser here so I just want to add an S on browser in each of those places so that that test is going to successfully be able to work. So with that in place let's go ahead and save this test. Let's go back to our terminal where we'll say python manage dot py test and if we go ahead and run this, it's going to open up Firefox a couple of times. There it is the first time and here it comes the second time. If we go back to our terminal, look at that. It ran all seven of the tests. Two of the functional…

Contents