Effective PyCharm Transcripts
Chapter: Unit testing
Lecture: The application to test
Login or
purchase this course
to watch this video and the rest of the course contents.
0:01
We have a new chapter, a new folder, unit testing so down here we have this application called program
0:08
and let's go quickly create a run configuration for it, and it's got to have a name, something better than just program
0:18
so let's call it program testing, so down here if we run this program testing you'll see that it asks you for your dinner reservation,
0:27
think like super simple open table type thing, so it says what kind of dinner are you in the mood for, I'm open for Thai right now,
0:35
all right there's two seats at Thai Roses and one at Siam Thai let's take the one at Siam Thai. So great, it's booked, now we can ask again
0:44
what else is available, oh there's just these two and if we keep booking them, you'll see eventually if we go and say what's there for Thai,
0:53
oops, no tables for that food type, try another, so we've sort of booked out of Thai and we go Seaburgers,
1:00
we got Skyline and Little Big Burger, and things like that; our goal is to take this application and put some unit tests in place
1:06
in reality you probably should have built them up together but just for the sake of keeping things short during this class
1:12
I don't want you to have to watch me write this whole little app and its core functionality
1:16
in fact, we're pretty much going to just test the behaviors around here this sort of simulates the database but it's not really,
1:24
ok so that's the app we're going to test and we're going to do this with pytest and PyCharm.