GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - AdvancedPythonWorkshop2025/Day3-AutomatedTesting: Exercises around learning how to do automated testing with Pytest

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
src/utils
src/utils
 
 
tests
tests
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
environment.yml
environment.yml
 
 
pyproject.toml
pyproject.toml
 
 

Repository files navigation

Adding Robustness and Confidence to Your Code through Automated Testing

Setup

Set up your conda environment:

conda env create -f environment.yml -p ./venv

Activate the Environment and Finish Setting Up the Internal Tools

conda activate ./venv
python -m ipykernel install --name testing
pip install -e .

Check that the Pytest Runner is Working:

pytest

Exercise 1: Test our Spike Math utilities

Instructions: The spike_math.py module has some functions that seem to work, but don't seem very clear. Working in the test_spike_utils.py module function-by-function, add pytest tests that check the function's behavior with test data.

  • Note: The module is written to be compatible with VSCode's Interactive mode. Feel free to run individual blocks to get a sense of how they work!

Exercise 2: Improving the Code through Debugging and Tests

Instructions: Improve the function's behavior, using the python debugger and PyTest functions!

About

Exercises around learning how to do automated testing with Pytest

Resources

Readme
Activity
Custom properties

Stars

1 star

Watchers

0 watching

Forks

4 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.