-
Download Anaconda (for macOS Installer) Python distribution version 3.7 from https://www.anaconda.com/distribution/#macos
-
Install Anaconda and Visual Studio Code (VSCode)
-
Download Anaconda (for Windows Installer) Python distribution version 3.7 from https://www.anaconda.com/distribution/#windows
-
Install Anaconda and Visual Studio Code (VSCode)
- While installing tick run the advanced options, tick Add Anaconda to my PATH env variable
-
Install git for windows from git-scm.com
-
Open VSCode
-
Clone this Git Repo in VSCode
-
From the "View" menu select the "Command Palette" option
-
Type Git Clone (and select)
-
Enter the url https://github.com/stuart-robinson/python_bridge.git
-
-
Open the Workspace python-bridge.code-workspace (a popup should ask you if you want to do this)
-
Install Python Test Explorer extension in VSCode
-
From the "View" menu select the "Extensions" option
-
Install Python Test Explorer for Visual Studio Code
-
Install Test Explorer UI
-
From the "Code" menu select "Preferences" and then click "Settings"
-
Using the settings search box search for "pytest"
-
Check "Enable unit testing using pytest" box
-
For "Python Test Explorer: Test Framework" select "pytest" from the dropdown
-
-
Run the tests from using the "Test Explorer" icon on the left hand panel
-
The test should all fail
-
Complete the exercise to make them pass
-
The exercise is comprised of 8 parts. Each part should be completed in order
- Assertions
- Strings
- Lists
- Dictionaries
- Sets
- Control Structures
- Classes
- Dice Project
Each part is written as a series of tests that need to be completed in order to make them pass.