Effective PyCharm Transcripts
Chapter: Unit testing
Lecture: Surveying the application we'll test
Login or purchase this course to watch this video and the rest of the course contents.
0:00 Here we are in the unit testing chapter of our source code. We have an app down here.
0:06 You can see that the app has this program file and then it has some core
0:10 data access logic about finding a table some types that represent our entities and some errors and all those kinds of things.
0:18 So, we have this program here that uses this core library. The whole idea of the app is we like to do some kind of open table
0:28 clone. I call it table buddies or something like that. And it says, hey, are you looking to go out to dinner? What type of food would you like?
0:36 And then it will show you the restaurants. Let you book a table there. That's the idea of this app. Let's give it a run just to see what it's like.
0:42 So here it is. It's running table open. All right, so we're going to see let's go and have some burgers. A couple of good places here in town.
0:51 We have a little big burger. There's several locations there, but certainly the skyline restaurant,
0:56 They've got good milkshakes. You should go for that one. So, we'll give that a shot. And boom, we booked a table at skyline. And then if we keep going,
1:03 let's try to book some more of these year for burgers and let's keep going noticed only two tables. Now there's one table now we tried again says,
1:12 well, sorry, there's no food for that. There's no tables for that food type. So we can't book it. All right.
1:19 That's the idea of the application and we're not going to test this user interaction bit
1:24 instead, what we're gonna do is we're going to go over and test this core library that does the data access, like find a table, book a table and so on.