From the course: Unit Testing in Python

Exercise files - Python Tutorial

From the course: Unit Testing in Python

Start my 1-month free trial

Exercise files

- [Instructor] The materials for this course are hosted on github.com. Once you pull up the GitHub repository, you'll see a green button to the right where you can download the project via SSH or HTTP. If you don't have administrative access to the computer you're using, you can use the HTTPS option to download it on your machine. This is also helpful if you don't have a GitHub account. Once that's downloaded, you can move to open that file. Make sure to move the file to a place on your machine that you can remember. In my case, I'll move it to the desktop. Now, moving back to the repository, I want to point out a few things. We can clear this. This repository is set up for you according to a branch structure. First you'll see that we're on our master branch. Now that we're on the master branch, let's explore. The folder that we're primarily concerned with is our test folder. Here you can navigate to different subdirectories that match the accompanying chapters in this course. Let's go to chapter 2, video 2. Here you'll see a test file. This one is called test_mapmaker_start. This shows you the starting phase for this particular video. All of the other subdirectories are also set up in this format. At the end of the course, if you're curious to see how these files should look in their end state, you can head back to the home page and switch branches. Instead, click final-state-per-chapter. Here, if we go back to our tests, chapter 2, video 2, in this folder, you'll see that file has changed to the name test_mapmaker_end. On this branch, this is the common naming convention that you'll spot, and if you were to run all of the tests, you would be running the end states of each file. You can move to examine the file and you'll see the final state that we need to get this test passing. With that, we can move back to the home page. For this course, again, we're starting off on master. This will be the branch that we'll open up in VS code.

Contents