Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Hint: You can adjust the default video playback speed in your account settings.

PyTest Fixtures & Fleshing Out Your Stack Class

Give Feedback

By implementing the push functionality of the Stack class, you’ll meet PyTest fixtures, which are a great way to provide a fixed baseline upon which tests can reliably and repeatedly executed.

Comments & Discussion

chrisstinemetz on Dec. 2, 2019

In VS code if you want to fix the import error you can add your virtual environment to workspace settings.

Open the settings.json file in .vscode directory

Then add the following:

{
    "python.venvPath": "~/patht/to/venvDirectory"
}

chrisstinemetz on Dec. 2, 2019

Correction, use this:

{
    "python.pythonPath": "/path/to/your/venv/bin/python",
}

Become a Member to join the conversation.